From 2bb5bd2d5b2888dcdc411cdd894e6a0dbd936928 Mon Sep 17 00:00:00 2001 From: Jorge Morante Date: Fri, 10 Nov 2023 15:18:37 +0100 Subject: [PATCH] tweak benchmark script --- benchmark.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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