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

This commit is contained in:
Georgi Gerganov 2022-12-06 18:47:48 +02:00
parent 78d13257be
commit 13e8eb2346
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

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