diff --git a/benchmark.sh b/benchmark.sh index 987a32e..da9ae85 100755 --- a/benchmark.sh +++ b/benchmark.sh @@ -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