diff options
| author | pes7 <pes7@users.noreply.github.com> | 2026-11-23 19:46:37 +0400 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-11-25 11:33:51 +0000 |
| commit | 5ffdc50fed161ea04fd8086772a9e01b5271777e (patch) | |
| tree | fe0ef92c1cdca4e7d404ee9438d13dfdb39a146f /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | bcaa13dad35f560748bd9b6293cd46504fe288c6 (diff) | |
scripts: a throughput benchmark for the translator (us per instruction)
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.
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions