fztbench: time fzt.dll already loaded against a fresh fzt in a new tmux pane #172

Merged
merge-queue merged 3 commits from ft-18-fztbench into main 2026-12-01 00:08:39 -08:00
Owner

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.

  • In process: with fzt.dll already loaded, opening a menu to its first frame and each key to its next frame.
  • In a new tmux pane, as the at menu's popup opens fzt today: a fresh program started directly (no shell, as display-palette starts it) on a tmux-throwaway server, 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) and at-app.json installs it beside fzt.exe and fzt.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

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. - **In process:** with fzt.dll already loaded, opening a menu to its first frame and each key to its next frame. - **In a new tmux pane, as the at menu's popup opens fzt today:** a fresh program started directly (no shell, as `display-palette` starts it) on a `tmux-throwaway` server, 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) and `at-app.json` installs it beside `fzt.exe` and `fzt.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](https://openproject.home.romaine.life/wp/TMUX-77)); a single command string goes to the shell unquoted ([TMUX-12](https://openproject.home.romaine.life/wp/TMUX-12), reproduced again for this work). Work package: [FT-18](https://openproject.home.romaine.life/wp/FT-18), for [FT-17](https://openproject.home.romaine.life/wp/FT-17). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fztbench: note the measured ranges (FT-18)
All checks were successful
Suite default / scope (pull_request) Successful in 5s
Suite default / check-fetches (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 5s
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 6s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Has been skipped
Suite release / build (go, windows-amd64-c-shared) (, go-windows-amd64-c-shared, false, windows-latest, windows-amd64-c-shared, go) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Successful in 1m2s
Suite release / check-build (go, windows-amd64-c-shared) (, go-windows-amd64-c-shared, false, windows-latest, windows-amd64-c-shared, go) (pull_request) Successful in 1m5s
Suite default / check-rules (pull_request) Successful in 6s
Suite default / check-logs (pull_request) Successful in 5s
Suite go / check-format (pull_request) Successful in 7s
Suite release / check-manifest (pull_request) Successful in 5s
Suite release / check-build (go, ubuntu-latest) (, go, false, ubuntu-latest, , go) (pull_request) Successful in 9s
merge-queue / group passed with the 9 modules that use it
Suite default / reused-checks (pull_request) Successful in 5s
Suite go / reused-checks (pull_request) Successful in 6s
Suite release / check-package (pull_request) Successful in 9s
Suite release / reused-checks (pull_request) Successful in 11s
merge-queue landed on main
f8440042fc
merge-queue deleted branch ft-18-fztbench 2026-12-01 00:08:39 -08:00
Sign in to join this conversation.
No description provided.