]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
bench : more concise representation of the results (#89)
authorGeorgi Gerganov <redacted>
Sun, 11 Dec 2022 09:56:13 +0000 (11:56 +0200)
committerGeorgi Gerganov <redacted>
Sun, 11 Dec 2022 09:56:13 +0000 (11:56 +0200)
extra/bench-all.sh

index 75a39de06962d45087c62978d02f569b9eeea71a..fbdc4c218ffc2efe5542ab7e0c84408e5e1d6a33 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] | Commit |\n"
-printf "| --- | -- | ------ | ----- | ------- | --------- | ----------- | ------ |\n"
+printf "| CPU | OS | Config | Model | Th | Load | Enc. | Commit |\n"
+printf "| --- | -- | ------ | ----- | -- | ---- | ---- | ------ |\n"
 
 for model in "${models[@]}"; do
     # run once to heat-up the cache
@@ -34,6 +34,10 @@ for model in "${models[@]}"; do
     system_info=$(echo "$output" | grep "system_info")
     n_threads=$(echo "$output" | grep "system_info" | awk '{print $4}')
 
+    # floor to milliseconds
+    load_time=${load_time%.*}
+    encode_time=${encode_time%.*}
+
     config=""
 
     if [[ $system_info == *"AVX2 = 1"* ]]; then