GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — aube/tak.toml at main · aubepkg/aube Expand file tree/ Copy pathtak.tomlMore file actions 96 lines (91 loc) · 4.67 KB / Copy pathtak.tomlFile metadata and controls96 lines (91 loc) · 4.67 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 # Instruction-counted benchmarks, measured by tak (https://github.com/jdx/tak). # # These complement the hyperfine matrix in `benchmarks/`, which measures # installs — network and filesystem work whose variance is orders of magnitude # larger than any CPU regression. Everything here is pure CPU against a # committed fixture: no registry access, no writes, no clock, so cachegrind can # count it to ~0.02% where wall clock on the same hardware moves 4-20%. # # Hermeticity was checked by running each of these with the registry pointed at # a dead port; all three succeed unchanged. `aube --version` deliberately is not # here: it is documented as "print version and check for updates", and a command # that talks to the network retires a different number of instructions depending # on conditions that have nothing to do with the code under test. # # `startup` is the control. It does no package work, so it measures the fixed # cost every invocation pays — process start, settings load, workspace # discovery. The other two are that same cost plus real graph work. When all # three move together the regression is in startup; when only one moves it is in # that command's path. Reading them without the control tells you much less. # # `fixtures/medium` is a 10-dependency, 28KB lockfile — small, but it separates # well: measured against a debug build, `startup` is 6.7ms where `graph` and # `tree` are 11.8ms and 11.1ms, so the package work is around 40% of each. A # larger fixture would raise that fraction if this ever feels blunt. # Fixed cost of any invocation: startup, settings, workspace discovery. [bench.startup] cmd = ["./target/release/aube", "-C", "fixtures/medium", "prefix"] # Parse the lockfile, walk the whole dependency graph, serialize every package. # Output is byte-identical run to run. [bench.graph] cmd = ["./target/release/aube", "-C", "fixtures/medium", "sbom"] # The other major read path over the same graph: resolve and render the tree. # `--depth 20` is past the fixture's real depth, so nothing is truncated. [bench.tree] cmd = ["./target/release/aube", "-C", "fixtures/medium", "list", "--depth", "20"] # Install, on the path people actually hit most: everything is already present # and aube has to prove it. Every CI job with a warm cache and every redundant # `aube install` a developer types pays exactly this, and at ~106ms it is the # heaviest thing here. # # `--offline` is what makes it measurable. Plain `install --frozen-lockfile` # contacts the registry even when nothing needs fetching — verified by pointing # it at a dead port, where it spends 70s retrying before failing. `--offline` # against the same dead port succeeds unchanged, so no measurement here can be # perturbed by the network. # # The store must already hold the fixture's packages; `mise run perf` warms it # with one networked install before handing over to tak. # # Not covered: the fresh-link path, where node_modules is deleted first — that # is the 571ms number in `benchmarks/results.json`. It cannot be repeated # without resetting the directory between runs, and tak has no per-benchmark # setup hook. `aube ci` looked like the answer since it deletes node_modules # itself, but it takes neither `--offline` nor `npm_config_offline`, so it # cannot be made hermetic. A setup hook in tak is the real fix. [bench.install] cmd = [ "./target/release/aube", "-C", "fixtures/medium", "install", "--frozen-lockfile", "--offline", ] # The `run` path, which nothing above touches: argv parse, project root # discovery, manifest read, script lookup, PATH assembly, and the direct-exec # PATH search. A regression guard, not a measurement of the shell-skipping # change that added it — that win is a fork plus a shell's own startup, which is # kernel and dynamic-linker work cachegrind either attributes to the `sh` child # (wildly overstating it) or misses entirely. The wall-clock number lives in # `benchmarks/` and in the PR that made it. # # `fixtures/run` is its own directory rather than another `fixtures/medium` # invocation for one reason: `medium`'s `package.json` feeds the install-state # hash, so giving it a `scripts` block would put a one-time step in the # `install` series above for reasons unrelated to any code change. The fixture # has no dependencies, so `--no-install` is honest and no store state is needed. # # The body is `id`: a real binary rather than a shell builtin (so it exercises # the PATH search and the direct spawn), cheap, and with no output that varies. # Deliberately not a Node script — node's own startup is ~10x aube's whole # invocation and would bury the thing being measured. [bench.run] cmd = [ "./target/release/aube", "-C", "fixtures/run", "run", "--no-install", "noop", ] |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |