bench : add commit hash to bench-all.sh results

pull/224/head
Georgi Gerganov 1 year ago
parent 78d13257be
commit 13e8eb2346
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

@ -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

Loading…
Cancel
Save