Spaces:
Running
Running
bench : more concise representation of the results (#89)
Browse files- extra/bench-all.sh +6 -2
extra/bench-all.sh
CHANGED
|
@@ -17,8 +17,8 @@ printf "Running benchmark for all models\n"
|
|
| 17 |
printf "This can take a while!\n"
|
| 18 |
printf "\n"
|
| 19 |
|
| 20 |
-
printf "| CPU | OS | Config | Model |
|
| 21 |
-
printf "| --- | -- | ------ | ----- |
|
| 22 |
|
| 23 |
for model in "${models[@]}"; do
|
| 24 |
# run once to heat-up the cache
|
|
@@ -34,6 +34,10 @@ for model in "${models[@]}"; do
|
|
| 34 |
system_info=$(echo "$output" | grep "system_info")
|
| 35 |
n_threads=$(echo "$output" | grep "system_info" | awk '{print $4}')
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
config=""
|
| 38 |
|
| 39 |
if [[ $system_info == *"AVX2 = 1"* ]]; then
|
|
|
|
| 17 |
printf "This can take a while!\n"
|
| 18 |
printf "\n"
|
| 19 |
|
| 20 |
+
printf "| CPU | OS | Config | Model | Th | Load | Enc. | Commit |\n"
|
| 21 |
+
printf "| --- | -- | ------ | ----- | -- | ---- | ---- | ------ |\n"
|
| 22 |
|
| 23 |
for model in "${models[@]}"; do
|
| 24 |
# run once to heat-up the cache
|
|
|
|
| 34 |
system_info=$(echo "$output" | grep "system_info")
|
| 35 |
n_threads=$(echo "$output" | grep "system_info" | awk '{print $4}')
|
| 36 |
|
| 37 |
+
# floor to milliseconds
|
| 38 |
+
load_time=${load_time%.*}
|
| 39 |
+
encode_time=${encode_time%.*}
|
| 40 |
+
|
| 41 |
config=""
|
| 42 |
|
| 43 |
if [[ $system_info == *"AVX2 = 1"* ]]; then
|