From: Georgi Gerganov Date: Tue, 6 Dec 2022 16:47:48 +0000 (+0200) Subject: bench : add commit hash to bench-all.sh results X-Git-Tag: upstream/1.7.4~1758 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=13e8eb23466c90b56b4a7ac4ed8513b19809a56d;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp bench : add commit hash to bench-all.sh results --- diff --git a/extra/bench-all.sh b/extra/bench-all.sh index 5a5e6028..75a39de0 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] |\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 "| | | $config | $model | $n_threads | $load_time | $encode_time |\n" + commit=$(git rev-parse --short HEAD) + + printf "| | | $config | $model | $n_threads | $load_time | $encode_time | $commit |\n" done