]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
bench : add commit hash to bench-all.sh results
authorGeorgi Gerganov <redacted>
Tue, 6 Dec 2022 16:47:48 +0000 (18:47 +0200)
committerGeorgi Gerganov <redacted>
Tue, 6 Dec 2022 16:47:48 +0000 (18:47 +0200)
extra/bench-all.sh

index 5a5e6028f75b349861a12e4a929e5e1375d39e10..75a39de06962d45087c62978d02f569b9eeea71a 100755 (executable)
@@ -17,8 +17,8 @@ printf "Running benchmark for all models\n"
 printf "This can take a while!\n"
 printf "\n"
 
-printf "| CPU | OS | Config | Model | Threads | Load [ms] | Encode [ms] |\n"
-printf "| --- | -- | ------ | ----- | ------- | --------- | ----------- |\n"
+printf "| CPU | OS | Config | Model | Threads | Load [ms] | Encode [ms] | Commit |\n"
+printf "| --- | -- | ------ | ----- | ------- | --------- | ----------- | ------ |\n"
 
 for model in "${models[@]}"; do
     # run once to heat-up the cache
@@ -48,6 +48,8 @@ for model in "${models[@]}"; do
         config="$config BLAS"
     fi
 
-    printf "| <todo> | <todo> | $config | $model | $n_threads | $load_time | $encode_time |\n"
+    commit=$(git rev-parse --short HEAD)
+
+    printf "| <todo> | <todo> | $config | $model | $n_threads | $load_time | $encode_time | $commit |\n"
 done