Skip to documentation content
Branchcut
Evidence

Current CLI comparison

Default and tuned CLI timings plus memory for the committed filesystem gap-closure implementation.

This is the 18 November 2026 Windows/NTFS snapshot for source commit 8035ad6e4551b7aade7d0cf77871521fdf02f1c3. The raw record retains executable hashes, source manifest, versions, invocations, samples and coverage boundaries. The 12 November comparison remains historical; its timings are not mixed into this table.

Method

  • The same generated 100,000-file corpus is searched through each official CLI or public Node package API. No zlob walker adapter is used.

  • Complete normalized path sets and duplicate prevention are checked before timing and after every sample. Limits are checked for count, uniqueness and membership, since discovery order differs.

  • Each timing is a fresh process including startup, planning, traversal, filtering and output capture: three warmups, nine measured samples, median reported. Cache state is uncontrolled. This is not a warm-engine or cold-disk benchmark.

  • Windows 11 build 26200, NTFS, Intel Core 5 210H, 12 logical CPUs, 16 GiB RAM; Rust 1.96.0 and Node 25.2.1. Competitors: zlob 1.7.0, ripgrep 15.1.0, fd 10.4.2, fast-glob 3.3.3, tinyglobby 0.2.14.

  • n/t means no equivalent invocation was implemented in this runner. It is not a claim that a tool lacks the feature. ripgrep is measured only with --files; content search is not compared.

  • The runtime source was committed before this run. The record's dirty flag includes pending documentation/site work; the runtime manifest identifies the exact measured source.

Default invocations

No worker override is applied. Branchcut normally chooses up to 16 available workers (12 on this machine), and uses one for an unordered limit unless explicitly overridden. Other tools retain their own defaults.

WorkloadMatchesBranchcutzlobripgrep (rg --files)fdfast-globtinyglobby
Broad files100,00268.79 ms123.94 ms109.17 ms117.14 ms370.45 ms242.30 ms
Fixed-prefix Rust1,25040.34 ms35.46 ms75.23 ms40.91 ms210.08 ms153.56 ms
Rust/TOML with exclusions37,50159.27 msn/t79.27 ms92.57 ms333.23 ms208.11 ms
Hidden Rust37,50364.51 ms98.29 ms84.53 ms94.45 ms314.34 ms195.53 ms
.gitignore Rust25,00068.29 ms80.07 ms77.18 ms113.49 msn/tn/t
Directories20253.76 ms80.35 msn/t84.66 ms251.20 ms152.86 ms
Sorted Rust37,501101.96 ms103.99 ms260.04 msn/tn/tn/t
First 10 Rust1037.50 ms98.46 msn/t46.00 msn/tn/t
Broad NUL output100,00272.61 msn/t105.54 ms109.36 msn/tn/t
Recursive basename Rust37,50164.26 ms96.60 ms76.10 ms94.15 ms318.07 ms208.26 ms

Fastest tested worker configuration

This table selects the lowest median among the recorded worker configurations. It is tuning evidence, not the default-user result. (4), (1), and (auto) identify explicit worker controls; no suffix means the default invocation. Explicit alternatives for ripgrep and fd were tested on broad, prefix and exclusion workloads; Branchcut alternatives were tested throughout. This is not an exhaustive tuning search.

WorkloadMatchesBranchcutzlobripgrep (rg --files)fdfast-globtinyglobby
Broad files100,00268.02 ms (auto)123.94 ms109.17 ms117.14 ms370.45 ms242.30 ms
Fixed-prefix Rust1,25033.39 ms (4)35.46 ms75.23 ms39.63 ms (1)210.08 ms153.56 ms
Rust/TOML with exclusions37,50158.88 ms (auto)n/t79.27 ms92.57 ms333.23 ms208.11 ms
Hidden Rust37,50363.23 ms (auto)98.29 ms84.53 ms94.45 ms314.34 ms195.53 ms
.gitignore Rust25,00067.23 ms (auto)80.07 ms77.18 ms113.49 msn/tn/t
Directories20253.76 ms80.35 msn/t84.66 ms251.20 ms152.86 ms
Sorted Rust37,50198.62 ms (auto)103.99 ms260.04 msn/tn/tn/t
First 10 Rust1035.41 ms (4)98.46 msn/t46.00 msn/tn/t
Broad NUL output100,00271.57 ms (auto)n/t105.54 ms109.36 msn/tn/t
Recursive basename Rust37,50160.36 ms (auto)96.60 ms76.10 ms94.15 ms318.07 ms208.26 ms

Branchcut leads nine default rows; zlob leads the default fixed-prefix query. Four-worker Branchcut reverses that fixed-prefix result in this run. Sorted and prefix comparisons are close enough that variation matters. Retaining both tables avoids presenting a tuned result as a default or claiming universal superiority.

Memory on the same broad-files query

Memory uses separate fresh runs of the same broad-files invocations and 100,002-path output contract, with three samples per configuration. The measuring parent captures and validates stdout; its own memory is excluded. The sampler observes the child's Windows OS peak working set at start and approximately every 1 ms, so peaks after the final observation can be missed. This is observed process working set, not allocator usage or Unix RSS. Memory-run timings are not used in the timing tables.

Tool, default invocationMedian peakObserved range
Branchcut6.38 MiB6.36–6.38 MiB
zlob20.17 MiB20.17–20.18 MiB
ripgrep (rg --files)14.29 MiB13.96–21.12 MiB
fd18.25 MiB17.86–19.09 MiB
fast-glob111.43 MiB109.96–116.94 MiB
tinyglobby84.71 MiB83.40–91.76 MiB

All tested worker configurations are retained below. Smaller worker budgets can reduce competitor memory substantially; a default-only comparison does not establish that Branchcut always uses less memory than every configuration.

Broad-files configurationMedianP90P95Peak working set, median
branchcut68.79 ms77.46 ms77.46 ms6.38 MiB
rg109.17 ms118.05 ms118.05 ms14.29 MiB
fd117.14 ms124.11 ms124.11 ms18.25 MiB
zlob123.94 ms137.34 ms137.34 ms20.17 MiB
fast_glob370.45 ms426.88 ms426.88 ms111.43 MiB
tinyglobby242.30 ms283.79 ms283.79 ms84.71 MiB
branchcut_495.55 ms109.32 ms109.32 ms5.87 MiB
branchcut_auto68.02 ms77.13 ms77.13 ms6.62 MiB
rg_1239.32 ms281.34 ms281.34 ms6.43 MiB
rg_4118.11 ms140.54 ms140.54 ms12.97 MiB
fd_1246.29 ms297.38 ms297.38 ms10.84 MiB
fd_4138.23 ms180.43 ms180.43 ms13.08 MiB

Limits and reproduction

These are ASCII synthetic-tree results on one Windows machine. Public repository, native Linux/macOS timing, cold storage, Unicode-heavy trees and broader metadata workloads need separate evidence. This record does not prove full feature compatibility with any competitor.

The supported-semantics suite separately checks 28 equivalent cases in both traversal modes. One composed-negation case retains an explicit Bash/micromatch dialect difference; it is not counted as fast-glob compatibility.

cargo build --release --locked
node scripts/compare-cli.mjs --binary target/release/branchcut.exe --zlob PATH_TO_ZLOB --oracle-dir target/oracle --output benchmarks/results/NEW_RECORD.json --sizes 100000 --warmups 3 --iterations 9 --memory-samples 3

Install pinned development-only Node oracles and make rg and fd available as described in the benchmarking guide. Use platform-appropriate binary paths. The memory flag currently requires Windows PowerShell. The preflight run is retained separately; it preceded the last correctness corrections and is not the final result.

On this page