Skip to main content

How does DropTerm measure its performance?

Date: 2026-12-03 · Record: immutable — corrections land as new rows, this text never changes. External facts pinned to their primary source at fetch date 2026-12-03 unless noted; gpui facts pinned to the workspace's actual carry (gpui-pre/gpui-component 0.3.12/0.9.1 per Cargo.lock), read from the local cargo-registry source of the crates.io snapshot.

TL;DR​

The pinned stack already carries nearly every instrument DropTerm needs — the work is wiring, not procurement. gpui-pre 0.3.12 ships a criterion bench harness with switchable measurements (wall time, process/thread retired instructions, getrusage, heap allocations — gpui::bench_group!/bench_main!/#[gpui::bench], BENCH_MEASUREMENT env), an in-process foreground journal that seals per-frame snapshots from task polls, input dispatches, draws and presentations, a hang detector over that journal, action-blocking statistics, and a public rendered_scene() — all exportable from gpui::profiler with the profiler feature DropTerm's dev graph can already enable. DropTerm's own side is half-built: boot-elapsed logging and the StartupMark (boot-to-first-painted-frame) cover startup and show latency, the DROPTERM_CHECK scenario harness and the vm-* walk plumbing are the automation substrate, and the gpui-spike already produced the show/recreate numbers. The peers confirm the measurement axes (kitty's three: keyboard-to-screen latency, throughput, energy — with latency measured externally, by Typometer or hardware, never in-process) and the discipline (ghostty: deterministic pre-generated corpora, hyperfine, release builds, never parallel runs). The four gaps the recommendation fills: a dropterm/benches/ engine suite, a throughput-corpus walk, profiler-feature frame snapshots/hang dumps in a check scenario (which also delivers the slide record's frame-interval verification), and macOS xctrace/attach recipes. What no peer automates end-to-end — true key-to-phosphor latency — stays an owner-run walk, with the app-side key→draw segment automatable instead.

Method​

Primary sources only: kitty's performance docs, ghostty's benchmark tooling docs and release notes, alacritty's man page, wezterm's manifest and troubleshooting docs, the zed repo at the exact pin gpui-pre 0.3.12 snapshots (d2a4fb6), the local registry source of the gpui-pre/gpui-pre-macros/gpui-pre-bench-metrics crates themselves, and the standard tooling's own docs (criterion, tracing-chrome, Rust Performance Book, wayland.freedesktop.org, xctrace man page, tokio-console). Every behavioral claim cited inline; the repo side grounded by grep and read of dropterm/src, the justfile, and the five named research records.

Findings​

1. What peers measure: kitty's three axes, and who measures them how​

kitty's performance page defines the axes the peers agree on: "Measuring terminal emulator performance is fairly subtle, there are three main axes on which performance is measured: Energy usage for typical tasks, Keyboard to screen latency, and throughput (processing large amounts of data)" (sw.kovidgoyal.net/kitty/performance, "Benchmarks", fetched 2026-12-03). Its own page answers each:

  • Latency is measured externally, never in-process: "This is measured either with dedicated hardware, or software such as Typometer" (same page, "Keyboard to screen latency"). kitty ships no measurement flag — the --measure-latency flag and frame-pacing self-measurement the question anticipated do not exist in kitty's docs; what kitty documents instead are the tuning knobs a latency measurement should pin (input_delay 0, repaint_delay 2, sync_to_monitor no, wayland_enable_ime no — "to minimize latency at the expense of more energy usage").
  • Throughput has a built-in instrument: "kitty has a builtin kitten to measure throughput, it works by dumping large amounts of data of different types into the tty device and measuring how fast the terminal parses and responds to it" (same page, "Throughput").
  • Energy is proxied: "I do not have the infrastructure to measure actual energy usage so CPU usage will have to stand in for it" (same page, "Energy usage").
  • In-process instrumentation is perf: "To profile kitty performance on Linux, first install perf and run sudo setcap cap_sys_admin,cap_sys_ptrace,cap_syslog=ep /usr/bin/perf. Then build kitty with make profile. Finally get benchmark and profiling results using ./benchmark.py --perf" (same page, "Instrumenting kitty").
  • kitty also documents the throughput effect of synchronized updates: terminals without the synchronized-update escape "are likely to improve by 20 - 50%" when they gain it ("Throughput").

The third-party latency methodology is consistent across independent efforts: emit keypresses, capture the screen, diff. The Zutty study: "This program measures end-to-end latency: it emits keypress events and captures the screen to note when it gets updated (as actually visible to the user)" (tomscii.sig7.se, "Typing latency of Zutty", 2021-01). A macOS variant replaced the capture with a phone camera: "I used Is It Snappy? (IIS) for iOS to take slow-motion videos of the screen while pressing keys on my keyboard" (lkhrs.com, "Measuring terminal latency", 2022-07-06). Typometer-based runs record "Time from a keypress until the character appears on screen … over 600 keypresses per terminal" (github.com/imsnif/benchmark-methodology METHODOLOGY, 2026-11-09).

2. Ghostty's and alacritty's discipline: generate-then-bench, release builds, hyperfine​

Ghostty splits its tools by role: "ghostty-gen generates synthetic input data. ghostty-bench consumes existing input data and runs a benchmark", with workflow rules that read as a checklist: "Do not pipe ghostty-gen directly into ghostty-bench when comparing performance … Reuse the exact same generated files when comparing revisions … Prefer deterministic generation inputs such as fixed seeds … Prefer hyperfine to compare benchmark timings … Never run multiple benchmarks in parallel on the same machine … Build benchmark tools with zig build -Demit-bench -Doptimize=ReleaseFast"; branch comparisons are made by building both binaries and running "all the benchmarks with hyperfine comparing the N binaries" (ghostty-org/ghostty src/benchmark/AGENTS.md @ main, fetched 2026-12-03). Its release notes show the reported shape — parser MB/s, end-to-end wall time, resize cost, per-frame lock holds: "plain ASCII text went from 128 MB/s to 725 MB/s (5.7x) … took cat-ing a 150 MB text file on macOS from 1.5 seconds to 566 milliseconds"; "resizing a terminal with a large scrollback is about 6x faster (120x80 with 10,000 lines of scrollback)"; "the renderer holds the terminal lock 2.7x to 11x less per frame" (ghostty.org/docs/install/ release-notes/1-4-0, 2026-10-27). The 2024 devlog that introduced this style benchmarked SIMD decode against memcpy with hyperfine means (mitchellh.com/writing/ghostty-devlog-006, 2024-02-12).

Alacritty's contribution is two diagnostic flags in its man page: --print-events — "Print all events to STDOUT" — and --ref-test — "Generates ref test" (alacritty/alacritty extra/man/alacritty.1.scd @ master, fetched 2026-12-03). alacritty_terminal carries a tests/ dir and no benches (GitHub contents listing, 2026-12-03) — its engine is measured by others (Typometer studies; kitty's and ghostty's comparative tables include it).

WezTerm is the thin one: its docs have no profiling page (docs/ listing, fetched 2026-12-03; the troubleshooting page offers the debug overlay, log files, and verbosity). Its in-tree instrumentation is two dhat cargo features: dhat-heap = ["dhat"] # if you are doing heap profiling and dhat-ad-hoc = ["dhat"] # if you are doing ad hoc profiling (wezterm/wezterm wezterm-gui/Cargo.toml @ main, fetched 2026-12-03).

Conflict worth recording, not resolving: the Typometer-based imsnif run measured ghostty 1.4.0 slower than kitty 0.50.0 on both throughput (24 vs 64 MB/s) and latency (12.2 vs 16.6 ms mean), while kitty's own page claims best-in-class latency and other 2026 comparisons rank ghostty at parity or ahead; one survey even labels its ghostty latency number "an outlier that smells like a measurement artifact (GTK under XWayland on Hyprland)" (grigio.org, 2026-10-06). Same tools, different environments, opposite rankings — environment discipline is the finding, the numbers are not portable.

3. What the pinned GPUI ships: a bench harness, a frame journal, a hang detector​

This is the workspace's actual carry — gpui-pre =0.3.12 (the crates.io snapshot of zed d2a4fb6, byte-verified by the kit-pass; sources read from ~/.cargo/registry/src/*/gpui-pre-0.3.12):

  • Criterion with switchable measurements. gpui::bench_group! "mirrors criterion::criterion_group!, but the group measures with the gpui::BenchMeasurement configured by BENCH_MEASUREMENT … By default Criterion analyzes wall time while retired instructions, cycles, IPC, context switches, and the other counters this machine supports are printed per iteration in the GPUI bench report. BENCH_MEASUREMENT=instructions makes Criterion analyze process-wide instructions instead, foreground-instructions the benchmark thread's alone, and wall-time disables all counters" (gpui-pre-0.3.12 src/bench.rs). bench_main! "installs CountingAllocator as the binary's global allocator, so reports include heap allocations per iteration" (same file). The #[gpui::bench] attribute accepts fps = N, inputs = EXPR, input_name, group, sample_size = N, seed = N, seeds(…), iterations = N (gpui-pre-macros-0.3.12 src/bench.rs, the attribute's own error text). Zed's one gpui bench at the pin shows the shape — #[gpui::bench(inputs = [0, 100, 1_000, 10_000], input_name = "handles", group = "focus_cleanup_no_drops_10000_effects", fps = 120)] over a BenchAppContext, with assert!(!cfg!(debug_assertions), "use --profile release-fast") (crates/gpui/benches/focus_cleanup.rs @ d2a4fb6). The underlying measurement crate is gpui-pre-bench-metrics 0.3.12: "Linux hardware performance counters (HardwareCounter), getrusage statistics (ResourceCounter), and heap allocations counted by CountingAllocator … Nothing in this crate depends on GPUI"; the hardware counter on "Linux (perf_event_open): every event, both scopes. Needs CAP_PERFMON or perf_event_paranoid <= 2"; on macOS it reads proc_pid_rusage and thread_selfcounts (bench_metrics.rs doc header + HardwareCounter docs). Criterion itself is the version in DropTerm's lock: "A statistics-driven micro-benchmarking library … strong statistical confidence in detecting and estimating the size of performance improvements and regressions" (docs.rs/criterion 0.8.2).
  • Zed's comparison script shows how the harness is driven: "Build two revisions once, then alternate bounded GPUI benchmark runs"; "Foreground retired instructions are primary. Linux needs perf access (CAP_PERFMON or perf_event_paranoid <= 2); macOS needs Apple Silicon. Frames run the production pipeline through the platform's headless GPU renderer, so they include scene encoding and GPU submission; GPU execution itself runs on other threads and isn't counted"; default suite targets ("randomized_element_tree", "primitives", "inspector_render") (zed script/gpui-bench-compare @ d2a4fb6). Zed's workspace benches at the pin: display_map.rs, edit_file_tool.rs, editor_render.rs, markdown_renderer.rs (crates/benchmarks/benches), plus per-domain benchmark crates (editor/agent/project/fs/worktree).
  • The profiler module — frame snapshots from real frames. pub mod profiler; is unconditional and pub use profiler::*; re-exports it (gpui-pre-0.3.12 src/gpui.rs:25, :138); the feature-gated halves (hang, journal, hdrhistogram timings) ride profiler = ["dep:hdrhistogram"], which bench-support already implies. The journal: "The foreground thread records task polls, action handlers, input dispatches, draws, and presentations as ForegroundEvents in a bounded journal ring", with sub-100 µs polls folded (TASK_POLL_FLOOR), and IntervalSealer grouping "all work preceding each boundary into a FrameSnapshot" whose fields are interval_start, the IntervalBoundary (presentation, frame skips, idle), events, small_polls, loss counters (src/profiler/journal.rs header + :318). The hang detector on top: "A hang is any single piece of foreground work — a task poll, an action handler, an input dispatch, a window draw, or platform presentation — that blocked the foreground thread for at least a threshold duration. An interval whose total foreground spend reached the frame budget also counts … many small pieces of work can drop a frame — or starve a headless app — as thoroughly as one long stall" (src/profiler/hang.rs header; HangDetector, HangIncident, HangMonitorConfig public). And action-level: ActionStatistics prints "Actions that blocked the longest" with the top-5 runtimes (src/profiler/actions.rs); get_all_timings/take_all_stats expose per-thread task timings for any collector to poll (src/profiler.rs).
  • Zed's app-level wiring, for reference: ZED_MEASUREMENTS=1 enables "a frame time measurement system that can be used to profile how long it takes to render each frame … print frame rendering timing information to stderr", with a file-comparison tool that "generate[s] a histogram visualization comparing the frame rendering performance data between the provided versions"; unit-test benches use #[perf] + cargo perf-test -p $CRATE (zed docs/src/development.md @ d2a4fb6, "Performance Measurements"). Its CPU-profiling doc is one paragraph: "Strongly recommend you use samply … The profile.json does not contain any symbols. Firefox profiler can add the local symbols" (zed docs/src/performance.md @ d2a4fb6). The in-app profiler surface (crates/miniprofiler_ui) consumes gpui::profiler's collector and serialized timings over a 10-second visible window — but imports zed-workspace crates (workspace, rpc, settings, zed_actions::OpenPerformanceProfiler), so the UI is not portable; the gpui-side API underneath it is.
  • Window::rendered_scene() is public at the pin (window.rs:3103) — DropTerm's dev graph already enables bench-support for exactly this: "bench-support rides beside test-support for rendered_scene — the rename slot's paint walk reads glyphs and selection paths off the rendered frame" (dropterm/Cargo.toml dev-deps comment).
  • No tracy/puffin anywhere in the pin: the feature list is bench, bench-support, default, font-kit, hot-reload, inspector, leak-detection, profiler, screen-capture, stacker, test-support, wayland, windows-manifest, x11 (gpui-pre-0.3.12 Cargo.toml); the older Zed tracy integration is gone at this snapshot.

4. The general Rust tooling, and what fits a Wayland layer-shell GPU app​

From the Rust Performance Book's profiling chapter (nnethercote.github.io/perf-book/profiling.html, fetched 2026-12-03):

  • perf + flamegraph/samply — "perf is a general-purpose profiler that uses hardware performance counters. Hotspot and Firefox Profiler are good for viewing data"; "flamegraph is a Cargo command that uses perf/DTrace"; "samply is a sampling profiler that produces profiles that can be viewed in the Firefox Profiler" (Zed's own doc picks samply, finding 3). Builds need [profile.release] debug = "line-tables-only" and, for clean stacks, -C force-frame-pointers=yes. Fits: yes — this is kitty's own instrumenting recipe (finding 1) and the hardware-counter prerequisite both gpui bench-metrics and gpui-bench-compare state (CAP_PERFMON / perf_event_paranoid <= 2). It profiles the CPU work (parse, layout, draw encoding), never the GPU execution or the compositor.
  • criterion — already in the lock (0.8.2) as gpui-pre's bench-support dependency; the stats-driven harness behind gpui's macros (finding 3). Micro-bench level only; wall-clock of an iteration, not frame pacing.
  • tracing + tracing-chrome — "tracing-chrome is a Layer for tracing-subscriber that outputs traces in Chrome's trace viewer format that can be viewed with chrome://tracing or ui.perfetto.dev … When _guard is dropped, your trace will be in a file like trace-1668480819035032.json" (docs.rs/tracing-chrome 0.7.2). Fits app-inserted spans (summon pipeline stages, PTY→engine→damage hops); tracing 0.1.44 is already in the lock transitively, but tracing-chrome and the spans themselves are new code — worth it only if the profiler journal's fixed event vocabulary (polls, actions, draws, presentations) proves too coarse.
  • heaptrack/dhat/massif — the memory stack is already surveyed, verdicted, and partly shipped by the memory-tracking record; this record defers to it wholesale.
  • WAYLAND_DEBUG=1 — libwayland itself: getenv("WAYLAND_DEBUG") enables the client debug stream when set to "1" or "client" (wayland/wayland src/wayland-client.c, cgit master, fetched 2026-12-03); the project's extras page documents WAYLAND_DEBUG=1|client|server and lists the filter/dumper tools for when the raw stream "is not enough" (wayland.freedesktop.org/extras.html). Fits narrow questions — the exact order of configure vs frame callbacks, the wire shape of a slide (the key-delivery record's owner-run wire capture is the in-house precedent) — and not per-frame cost: it is a protocol dump, uncorrelated with render work.
  • hyperfine — the peers' whole-binary comparator (ghostty's rule, finding 2). Fits time cat corpus-style end-to-end runs and startup-time comparisons of two release builds.
  • macOS Instruments/xctrace — "xctrace — Record, import, export and symbolicate Instruments .trace files"; e.g. xctrace record --all-processes --template 'Time Profiler' --time-limit 5s, or --attach pid for the running instance (xctrace(1), man page dated 2023-01-03; Apple's Xcode command-line tool reference lists xctrace and points to man xctrace). Owner-run on the mac host, attach-mode against a running build.
  • tokio-console — "a debugger for asynchronous Rust programs" (tokio-rs/console README @ main, fetched 2026-12-03). Relevant only to the D-Bus sidecar runtime (the ai-provider record's seam), not to the foreground executor — a watch item, not an instrument to stand up.

What DropTerm has today​

  • Startup + show latency are half-instrumented already. Every pump logs self.boot.elapsed().as_millis() (app_shell.rs, ~40 sites), and the plugin manifest's startup mark sends StartupMark { elapsed_ms } — "boot-to-frame milliseconds, the 50 ms window's measure, sent once and in every session" (app_shell.rs:2350–2373), anchored on the first painted frame's pump. show_open: Instant sits beside it (app_shell.rs:545).
  • The check harness is the timing substrate. DROPTERM_CHECK boots scenario variants instead of the shell — kit-c2b and terminal-grid on Linux (main.rs:143–152) — and kit_check.rs stamps let open = Instant::now(); at window open, counts frames, and prints the resize cadence (kit_check.rs:97, :160, :180). The gpui-spike's numbers came from exactly this class of harness: release show 34 ms against the 130 ms slide (sway debug 121 ms), recreate 138–146 ms, keyboard re-grab +141 ms — with the caveat that debug numbers ran on software GL/llvmpipe (gpui-spike record, 2026-11-13).
  • The frame throttle fix landed, so full-rate frames are the new baseline: inactive_frame_interval: None at all three executor sites (executor/layer_shell.rs:244, :288, executor/macos.rs:222). The slide record's remaining verification instrument — "a frame-interval log at the slide wrapper (elapsed between animator invocations)" — is specified there but not present in the tree (grep: frame_interval matches only the three WindowOptions sites).
  • The automation plumbing exists: the vm-* recipes push, install, exec, screenshot, and snapshot the COSMIC validation VM (justfile:741–836), the spike used wtype (zwp virtual keyboard) for keystroke injection on both compositors (gpui-spike sources), and just mem-churn runs the capped RSS-curve probe (justfile:297–301). There is no bench or perf recipe in the justfile and no dropterm/benches/ directory (verified by listing).
  • The engine is benchable in-repo: the forked engine sources live at carried/alacritty-terminal (ram-leak record), the engine module already has a tests.rs suite with real-shell state builders, and the memory side — scrollback capped at ~50.5 MiB/tab (resource-audit), the churn probe, heaptrack/dhat recipes — is the memory-tracking record's standing verdict, not re-decided here.
  • criterion 0.8.2, tracing 0.1.44, and gpui-pre-bench-metrics 0.3.12 are already resolved in Cargo.lock — criterion and bench-metrics ride gpui-pre's bench-support, which DropTerm's dev dependencies enable (dropterm/Cargo.toml:277). One warning from the project's own record: pane-booting gpui tests trip the test scheduler's thread-affinity gate (pty-test-gate record) — bench contexts and headless check scenarios avoid the pump shape that trips it, but a bench that boots panes inherits the hazard.

Recommendation​

Ranked; 1 and 2 are greenfield but small, 3 is configuration plus one dump site, 4 is owner-run procedure.

  1. A dropterm/benches/ engine suite on the pinned gpui harness. Criterion benches over the engine seam DropTerm actually owns — the PTY-chunk feed into the carried fork's Term (parse + damage), the suggest pipeline, and resize — built with gpui::bench_group! / bench_main! (allocation counting comes free from CountingAllocator) or plain criterion with bench_metrics::BenchMeasurement where instruction counts matter. Follow ghostty's rules (finding 2): deterministic pre-generated corpora checked nowhere, same inputs across revisions, release build asserted in the bench body like zed's (assert!(!cfg!(debug_assertions))), never parallel runs. BENCH_MEASUREMENT= foreground-instructions gives the near-deterministic counter for before/after calls; perf_event_paranoid <= 2 on the dev rig makes it work. Hyperfine is for whole-binary comparisons only, not in-process benches.
  2. A throughput + startup + show walk, scripted where possible. End-to-end throughput in ghostty's shape: a deterministic corpus cat-ed through a pane, wall-clocked over the vm-* plumbing (just vm-push && just vm-exec-user 'dropterm new-tab --cmd …' — the walk itself stays owner-run per the 2026-11-14 runtime ruling); report it exactly like the peers do (MB/s by corpus class: ASCII, SGR-heavy, CJK, plus a synchronized-updates variant). Startup and show already have their instrument: the StartupMark/boot-elapsed logs are the numbers to extract per build; the check harness's OPEN→FIRST_FRAME stamps (kit_check's open: Instant) are the spike's measure to re-run per release.
  3. Turn on gpui's own frame machinery in a check scenario. Enable the profiler feature for a DROPTERM_CHECK build (dev/check-only, mirroring how bench-support is already dev-gated) and add a dump at scenario exit: take_all_stats/get_all_timings, the journal's FrameSnapshots, and HangDetector incidents. Because the journal records input dispatches and presentations as its boundaries, the same dump answers two open items at once: the slide record's frame-interval verification (interval boundaries are the presentation events) and an app-side key→draw segment for input latency — with wtype injection through the existing vm plumbing making it repeatable. This is the one new code item, and it replaces hand-rolled frame logging, not augments it.
  4. Owner-run capture ladder for the field, per platform: Linux — samply/perf with debug = "line-tables-only" and force-frame-pointers=yes when stacks are unreadable, WAYLAND_DEBUG=1 2> file reserved for configure/callback-order questions; macOS — xcrun xctrace record --template 'Time Profiler' --attach <pid> --time-limit 30s; async sidecar questions — tokio-console, parked until the sidecar grows real work. Memory stays under the memory-tracking record's verdict; nothing here re-opens it.

Rejected, spelled out: a kitty-style external key-to-phosphor automation (Typometer drives X11 synthetic input; DropTerm's primary surface is a Wayland layer shell with exclusive keyboard focus — the same restricted-input regime the global-hotkeys record documented — so synthetic-input rigs face compositor permission walls; the peers themselves do it with hardware/photodiode or a phone camera, i.e. owner-run manual work; the app-side key→draw segment of recommendation 3 plus slow-mo video is the honest substitute). Adopting tracy/puffin (absent from the pin's feature list — adding them means new deps and hand-placed spans to duplicate what the journal already records natively). Porting Zed's miniprofiler_ui (its workspace dependencies — workspace, rpc, settings — are zed-private; only the gpui-side API is consumable). Shipping an in-app stats HUD now (new UI surface to maintain; stderr dumps from a check scenario serve the measurement need without entering release builds). WAYLAND_DEBUG as a frame-pacing instrument (wire dump, no render correlation — right for protocol-order questions like the key-delivery capture, wrong for per-frame cost). Criterion as a frame-pacing instrument (it measures iteration wall time in-process; on Wayland the compositor paces real frames via wl_surface.frame callbacks — the slide record's findings 1–2 — and gpui-bench-compare's own doc states the boundary: benches run frames "through the platform's headless GPU renderer", with GPU execution "on other threads and … not counted"). eBPF/Coz/causal profiling (perf-book lists them; zero peer precedent in the surveyed terminals; exotic machinery for questions 1–3 already answer).

Sources​

  • kitty, "Performance" (sw.kovidgoyal.net/kitty/performance/, sections: Benchmarks, Keyboard to screen latency, Throughput, Energy usage, Instrumenting kitty — fetched 2026-12-03).
  • ghostty-org/ghostty: src/benchmark/AGENTS.md @ main (fetched 2026-12-03); 1.4.0 release notes (ghostty.org/docs/install/release-notes/1-4-0, 2026-10-27); devlog 006 (mitchellh.com/writing/ghostty-devlog-006, 2024-02-12).
  • alacritty/alacritty extra/man/alacritty.1.scd @ master (--print-events, --ref-test — fetched 2026-12-03); alacritty_terminal contents listing (tests, no benches — fetched 2026-12-03).
  • wezterm/wezterm wezterm-gui/Cargo.toml @ main (dhat features) + docs/ listing + troubleshooting.html (fetched 2026-12-03).
  • zed-industries/zed @ d2a4fb6ded7c470be25d1541281da3882495b65b (the rev gpui-pre 0.3.12 snapshots — kit-pass C1, gpui-spike record), fetched 2026-12-03: docs/src/development.md ("Performance Measurements": ZED_MEASUREMENTS, #[perf]/cargo perf-test), docs/src/performance.md (samply), script/gpui-bench-compare (docstring), crates/gpui/benches/focus_cleanup.rs, crates/benchmarks/benches/ listing, crates/miniprofiler_ui/src/miniprofiler_ui.rs, script/ listing (no measure-* scripts; gpui-bench-compare is the one).
  • gpui-pre 0.3.12, gpui-pre-macros 0.3.12, gpui-pre-bench-metrics 0.3.12 — local cargo-registry source of the crates.io snapshots the workspace pins (Cargo.lock), read 2026-12-03: src/bench.rs, src/gpui.rs exports, src/profiler/{journal,hang,actions}.rs, src/window.rs:3103, macros src/bench.rs, bench-metrics src/bench_metrics.rs.
  • docs.rs/criterion 0.8.2 (crate doc) and docs.rs/tracing-chrome 0.7.2 (overview) — fetched 2026-12-03.
  • The Rust Performance Book, "Profiling" (nnethercote.github.io/perf-book/profiling.html — fetched 2026-12-03).
  • wayland.freedesktop.org/extras.html ("Protocol dumpers") and wayland/wayland src/wayland-client.c @ cgit master (getenv("WAYLAND_DEBUG") — fetched 2026-12-03).
  • xctrace(1) man page (keith.github.io/xcode-man-pages/xctrace.1.html, page dated 2023-01-03) and Apple's Xcode command-line tool reference (developer.apple.com/documentation/xcode/xcode-command-line-tool-reference — fetched 2026-12-03).
  • tokio-rs/console tokio-console/README.md @ main (fetched 2026-12-03).
  • Methodology examples (secondary, technique only): tomscii.sig7.se "Typing latency of Zutty" (2021-01); lkhrs.com "Measuring terminal latency" (2022-07-06); github.com/imsnif/benchmark-methodology (2026-11-09); grigio.org terminal comparison (2026-10-06).
  • This repo, read 2026-12-03: dropterm/src/app_shell.rs (545, 1439, 1837–2701, 2350–2373), dropterm/src/main.rs (138–152), dropterm/src/kit_check.rs (97, 160, 180), dropterm/src/executor/layer_shell.rs (244, 288), dropterm/src/executor/macos.rs (222), dropterm/Cargo.toml (dev-deps comment, :277), Cargo.lock (criterion 0.8.2, tracing 0.1.44, gpui-pre-bench-metrics 0.3.12), justfile (297–301, 741–836, whole-recipe survey), docs/docs/research/{gpui-spike,memory-tracking-tooling,ram-leak,resource-audit}.md.

Unverified​

  • kitty's exact benchmark-kitten invocation: the docs page says "a builtin kitten to measure throughput" without the command line; third-party posts name kitten __benchmark__, but kitty's repo listing (kitty/ and kittens/ dirs, fetched 2026-12-03) surfaced no file by that name — the invocation is unconfirmed.
  • The justfile's "lto = true release profile" (build-jobs comment) vs. no [profile.*] section found in either Cargo.toml — the profile section could not be located; one of the two claims is stale, and this record relies on neither.
  • That #[gpui::bench]/bench_group! compile against gpui-pre as DropTerm consumes it: zed's benches run inside zed's workspace with its own release-fast cargo profile; a DropTerm bench target needs bench = true + harness = false on the bench target and has never been compiled here — the recommendation's first step is proving that build.
  • BENCH_MEASUREMENT's unset default behavior is stated in bench.rs's doc comment ("By default Criterion analyzes wall time while … counters … are printed"), but which counter set a given machine supports (IPC, context switches) was not probed on DropTerm's dev rig.
  • Typometer itself (github.com/pavel-fatin/typometer) was not fetched directly; its capabilities are known here only through kitty's link text and the two studies that used it.
  • The latency-ranking conflict (finding 2) is recorded, not adjudicated: kitty's page claims best-in-class latency while an independent 2026 Typometer run and a Hyprland survey both disagree in different directions; the studies' environments (display server, compositor, refresh rate, build flags) are documented well enough to explain divergence but not to rank the emulators.
  • ResourceCounter/getrusage field coverage on Linux was read from the bench-metrics doc header only (the enum listing was truncated); which specific rusage statistics it exposes is unverified.