]> Untitled Git - lemmy.git/blobdiff - scripts/compilation_benchmark.sh
Adding script to upgrade deps, and check for unused ones.
[lemmy.git] / scripts / compilation_benchmark.sh
index 6d454795d4964e298ba7468c71ed231d71f5a419..af355734b12ac2bab5a995007436a23db0d6da51 100755 (executable)
@@ -8,8 +8,8 @@ for ((i=0; i < times; i++)) ; do
     echo "cargo clean"
     # to benchmark incremental compilation time, do a full build with the same compiler version first,
     # and use the following clean command:
-    #cargo clean -p lemmy_utils
-    cargo clean
+    cargo clean -p lemmy_utils
+    #cargo clean
     echo "cargo build"
     start=$(date +%s.%N)
     RUSTC_WRAPPER='' cargo build -q
@@ -20,4 +20,4 @@ done
 
 average=$(bc <<< "scale=0; $duration / $times")
 
-echo "Average compilation time over $times runs is $average seconds"
\ No newline at end of file
+echo "Average compilation time over $times runs is $average seconds"