Skip to content

Commit

Permalink
Repeat compile-time benchmark 20 times
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Dec 12, 2023
1 parent aa30cc6 commit dcd643d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/comptime/benchmark.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/bin/bash

# the record dim has 1095 entries
repetitions=20
for i in {0..1000..20}; do
cmake -DLLAMA_COMPTIME_RECORD_DIM_SIZE=$i .. > /dev/null 2>&1
s=$(\time -f "%e" make llama-comptime 2>&1 > /dev/null)
echo $i $s
for ((j=0; j < $repetitions; j++)); do
make clean
s=$(\time -f "%e" make llama-comptime 2>&1 > /dev/null)
echo $i $s
done
done

0 comments on commit dcd643d

Please sign in to comment.