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 415247a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ set -o pipefail # Sets the exit status for pipes
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>"
if [ "$#" -ne 3 ]; then
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 415247a

Please sign in to comment.