From: Georgi Gerganov Date: Sun, 11 Dec 2022 09:56:13 +0000 (+0200) Subject: bench : more concise representation of the results (#89) X-Git-Tag: upstream/1.7.4~1734 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=ea38ad6e70e2b4bd0c1a79f3e2cbfd99ad9393c3;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp bench : more concise representation of the results (#89) --- diff --git a/extra/bench-all.sh b/extra/bench-all.sh index 75a39de0..fbdc4c21 100755 --- a/extra/bench-all.sh +++ b/extra/bench-all.sh @@ -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