Skip to content

Commit

Permalink
Improve synthetic comptime script
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Dec 13, 2023
1 parent c65eaa1 commit 3152365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/comptime/benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ for i in {0..1000..20}; do
cmake -DLLAMA_COMPTIME_RECORD_DIM_SIZE=$i .. > /dev/null 2>&1
for ((j=0; j < $repetitions; j++)); do
make clean
s=$(\time -f "%e" make llama-comptime 2>&1 > /dev/null)
s=$( { TIMEFORMAT=%R; time make -j1 llama-comptime > /dev/null 2>&1 ; unset TIMEFORMAT; } 2>&1 )
echo $i $s
done
done

0 comments on commit 3152365

Please sign in to comment.