Skip to content

Commit

Permalink
bench : more concise representation of the results (ggerganov#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 11, 2022
1 parent 66874ea commit 0966694
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions extra/bench-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0966694

Please sign in to comment.