benchmark fixes

This commit is contained in:
Jorge Morante 2024-08-14 09:53:21 +02:00
parent 3e1d0a8d85
commit 36b0be2002
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -1,3 +1,3 @@
for id in $(tmux list-windows -F "#{window_id}:#{pane_id}:#{window_name}" | grep -v ":$1:" | grep "fingers" | cut -f1 -d:); do for id in $(tmux list-windows -F "#{window_id}:#{pane_id}:#{window_name}" | grep -v ":%0:" | grep "fingers" | cut -f1 -d:); do
tmux kill-window -t $id tmux kill-window -t $id
done done