fztbench: time fzt.dll already loaded against a fresh fzt in a new tmux pane #172
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-verification
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-terminal!172
Loading…
Reference in a new issue
No description provided.
Delete branch "ft-18-fztbench"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
fztbench, a measuring command that times an fzt menu two ways so the comparison behind FT-17's resident fzt helper can be rerun whenever fzt.dll or the way tmux opens fzt changes, instead of being rebuilt by hand.display-palettestarts it) on atmux-throwawayserver, timed from the command reaching tmux to the program running and to fzt.exe's first row reaching tmux. A control-mode client sends the commands and reads the pane output, so no tmux client start is counted, and the timestamps come from the machine-wide performance counter, so the pane's program and the bench compare directly.It prints every sample, then each measurement's median, fastest and slowest. It never passes or fails, since a timing threshold would be a flaky test. The repo's CI requires every
cmd/program to be released, so it ships with fzt's releases (Windows only) andat-app.jsoninstalls it besidefzt.exeandfzt.dll, which it times by default.On nelsonpc, fzt v0.1.228, 300 entries: about 2 ms to open in process and 1 ms a key; 20–75 ms to a running program in a new pane and 30–175 ms to fzt's menu in tmux.
The pane's program arguments are quoted for CreateProcess before tmux sees them, because the Windows tmux joins them unquoted (TMUX-77); a single command string goes to the shell unquoted (TMUX-12, reproduced again for this work).
Work package: FT-18, for FT-17.
🤖 Generated with Claude Code