Skip to content

Commit

Permalink
Update benchmark script
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Oct 25, 2023
1 parent 3cf34c8 commit 032b887
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ set -u # Triggers an error when an unset variable is called
set -o noclobber # Prevents from overwriting existing files

if [ "$#" -ne 2 ]; then
echo "Usage: ./benchmark.sh <model> <runs>"
echo "Usage: ./benchmark.sh <model> <max_worker_count> <runs>"
exit 1
fi

model=$1
runs=$2
max_worker_count=$2
runs=$3

zig build -Doptimize=ReleaseFast

for ((worker_count=0; worker_count<11; worker_count++))
for ((worker_count=0; worker_count<=max_worker_count; worker_count++))
do
echo -n "Running $model with $worker_count workers:"

Expand Down

0 comments on commit 032b887

Please sign in to comment.