tweak benchmark script

This commit is contained in:
Jorge Morante 2023-11-10 15:18:37 +01:00
parent fcc4a3ad6c
commit 2bb5bd2d5b
1 changed files with 8 additions and 1 deletions

View File

@ -10,4 +10,11 @@ tmux send-keys Enter
sleep 5
tmux new-window 'hyperfine --warmup 5 "bin/tmux-fingers start %0 self" --export-markdown /tmp/benchmark-output'
echo "Running benchmarks ..."
tmux new-window 'hyperfine --warmup 5 --runs 1000 "bin/tmux-fingers start %0 self" --export-markdown /tmp/benchmark-output'
echo "Waiting for results ..."
timeout 60 bash -c 'while [[ ! -s /tmp/benchmark-output ]]; do sleep 1; done'
cat /tmp/benchmark-output