mirror of
https://github.com/Morantron/tmux-fingers.git
synced 2026-09-10 07:26:32 -04:00
benchmark fixes
This commit is contained in:
parent
3e1d0a8d85
commit
36b0be2002
|
|
@ -11,10 +11,10 @@ tmux send-keys Enter
|
|||
sleep 5
|
||||
|
||||
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 ..."
|
||||
|
||||
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in a new issue