<feed xmlns='http://www.w3.org/2005/Atom'>
<title>npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/scripts/bench_translate.py, branch ci/exclude-legacy-cpp-runtime-tests</title>
<subtitle>[no description]</subtitle>
<id>https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests</id>
<link rel='self' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/atom?h=ci%2Fexclude-legacy-cpp-runtime-tests'/>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/'/>
<updated>2026-11-30T09:00:53+00:00</updated>
<entry>
<title>chore: remove 13 dead one-off scripts, fix /home/nolan test paths, drop unused imports (CHORE-TIER2A-PYTHON-CLEANUP)</title>
<updated>2026-11-30T09:00:53+00:00</updated>
<author>
<name>Jan Trencansky</name>
<email>jan.trencansky@protonmail.com</email>
</author>
<published>2026-11-30T09:00:53+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=45df09b8432a2891ca71d6c6143ed62707d9fc7a'/>
<id>urn:sha1:45df09b8432a2891ca71d6c6143ed62707d9fc7a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tools/scripts: the four leftover __main__ blocks set errors=replace on stdout (TOOL-STDOUT-GUARD-LEFTOVER-FOUR)</title>
<updated>2026-11-28T20:11:42+00:00</updated>
<author>
<name>aegish-zagi</name>
<email>266378548+aegish-zagi@users.noreply.github.com</email>
</author>
<published>2026-11-28T20:11:42+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=fa3847b07524de66932b1a9075f21515300438f3'/>
<id>urn:sha1:fa3847b07524de66932b1a9075f21515300438f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bench_translate: refuse flag combinations that were silently ignored, and require a baseline that exists</title>
<updated>2026-11-25T11:33:51+00:00</updated>
<author>
<name>pes7</name>
<email>pes7@users.noreply.github.com</email>
</author>
<published>2026-11-23T21:56:31+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=f03dfe23ae29c56bc705865367d4fa00b7100fa4'/>
<id>urn:sha1:f03dfe23ae29c56bc705865367d4fa00b7100fa4</id>
<content type='text'>
Reported by @SamuelReeder on #7056. --compare ignored --json, --write-baseline and --baseline; a --baseline path that
does not exist was accepted and produced empty numbers; and naming one file for both baseline flags let a run that
failed the limit replace the reference it failed against, so the same workload passed on the retry. All three are now
parser errors, with the reason in the message.

--compare also refuses to compare two trees whose measurements do not cover the same programs (a skipped program read
as a ratio that looks like a win) and reports an empty corpus instead of dividing by nothing.

Tests: the three refusals, an aliased baseline, a missing baseline file.
</content>
</entry>
<entry>
<title>bench_translate: --compare honours --max-slowdown, and a partial baseline no longer aborts</title>
<updated>2026-11-25T11:33:51+00:00</updated>
<author>
<name>pes7</name>
<email>pes7@users.noreply.github.com</email>
</author>
<published>2026-11-23T20:06:14+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=3bcb6212a22afe78c85900dbd93d40f1c3554d70'/>
<id>urn:sha1:3bcb6212a22afe78c85900dbd93d40f1c3554d70</id>
<content type='text'>
Both reported by @YordiLorenzo on #7056. --compare returned 0 whatever the limit said, although the help promises it in
every output format: the ratios are candidate/reference, so the limit now applies to them directly and a measurement
over it exits 1 with the factor printed. A baseline holding only some of the measurements raised KeyError in the text
output: the per-program line reads the baseline with .get() and says so when a measurement has none.

Two regression tests: --compare with --max-slowdown 0.01 over identical trees exits 1, and a corpus-only baseline
still prints every row. 7 tests, OK.
</content>
</entry>
<entry>
<title>bench_translate: honour --max-slowdown in --json too, and let a run save its own baseline</title>
<updated>2026-11-25T11:33:51+00:00</updated>
<author>
<name>pes7</name>
<email>pes7@users.noreply.github.com</email>
</author>
<published>2026-11-23T17:09:20+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=4c70aeaf76942a02532a91f96e0f51ac20123d6d'/>
<id>urn:sha1:4c70aeaf76942a02532a91f96e0f51ac20123d6d</id>
<content type='text'>
Reported on #7056: --json returned before the limit was evaluated, so a job that collects JSON read a success code for
a run whose numbers were all over the limit. The limit is now evaluated once, before either format prints, and the
JSON carries over_limit; both formats return 1.

The committed BASELINE is one machine's numbers, so --max-slowdown against it fails on any other machine with no
regression in it. --write-baseline FILE records this run, --baseline FILE compares against it (JSON reports
baseline_source), and the text output names which baseline it used.

Tests: the limit is checked in both formats (exit 1, over_limit non-empty), and a written baseline round-trips
(exit 0 at 5x, baseline keys equal to measured keys).
</content>
</entry>
<entry>
<title>scripts: --compare A B, interleaved timing of two tools/ trees</title>
<updated>2026-11-25T11:33:51+00:00</updated>
<author>
<name>pes7</name>
<email>pes7@users.noreply.github.com</email>
</author>
<published>2026-11-23T16:19:13+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=03a92eecd067805299935d747d4d60def54b97e6'/>
<id>urn:sha1:03a92eecd067805299935d747d4d60def54b97e6</id>
<content type='text'>
A single-tree measurement cannot separate a real speedup from the machine drifting between runs: the same code
measured minutes apart moved by 40% here. --compare loads each tree in its own subprocess (LEONIDA_TOOLS_DIR, as
tests/semantic/support.py does), alternates the order every round so whoever runs first does not pay the cold file
cache, discards a warm-up round, and keeps the best per side.

Control: --compare tools tools --rounds 3 --runs 2 gives 1.01x / 1.00x / 0.99x on the three measurements.
</content>
</entry>
<entry>
<title>scripts: a throughput benchmark for the translator (us per instruction)</title>
<updated>2026-11-25T11:33:51+00:00</updated>
<author>
<name>pes7</name>
<email>pes7@users.noreply.github.com</email>
</author>
<published>2026-11-23T15:46:37+00:00</published>
<link rel='alternate' type='text/html' href='https://upleb.uk/npub1w4dsu3e6hzjehh7l3c9njhtwwtgk9g209ylqf4tvdn2m07xjq06se9ett9/Leonida/commit/?id=5ffdc50fed161ea04fd8086772a9e01b5271777e'/>
<id>urn:sha1:5ffdc50fed161ea04fd8086772a9e01b5271777e</id>
<content type='text'>
The repository tests what rdna2spirv.py emits and nothing about how long it takes, so a change to the parser or
the instruction table can cost a large share of a build (26,503 shaders) and still pass every test.

The script times translate() on the hand-written semantic fixtures and on two generated straight-line programs
(ALU work, s_nop dispatch), reports best-of-N us per instruction against a recorded baseline, prints JSON for
tooling, and can fail a --max-slowdown check. No game data, no LLVM, no SPIRV-Tools.
</content>
</entry>
</feed>
