scripts : add helpers script for bench comparing commits
This commit is contained in:
parent
594845aab1
commit
57abd79f3c
1 changed files with 23 additions and 0 deletions
23
scripts/compare-commits.sh
Executable file
23
scripts/compare-commits.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
echo "usage: ./scripts/compare-commits.sh <commit1> <commit2> [additional llama-bench arguments]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
bench_args="${@:3}"
|
||||
|
||||
rm -f llama-bench.sqlite
|
||||
|
||||
git checkout $1
|
||||
make clean && LLAMA_CUBLAS=1 make -j32 llama-bench
|
||||
./llama-bench -o sql $bench_args | tee /dev/tty | sqlite3 llama-bench.sqlite
|
||||
|
||||
git checkout $2
|
||||
make clean && LLAMA_CUBLAS=1 make -j32 llama-bench
|
||||
./llama-bench -o sql $bench_args | tee /dev/tty | sqlite3 llama-bench.sqlite
|
||||
|
||||
./scripts/compare-llama-bench.py -b $1 -c $2
|
Loading…
Add table
Add a link
Reference in a new issue