Files
betterxen/benchmarks/manifest.toml
T
Ranveer Soni 90e984dc77 feat: add correctness-gated benchmark harness and a second interpreter
Add a manifest-driven benchmark binary that verifies each fixture against
the independent reference and the GPU before timing it, reports per-stage
CPU and GPU durations with medians and quartiles, and writes metadata,
raw JSON and a markdown report. Extend the Metal backend with a profiled
execution path that reads command-buffer GPU start and end times.

Add a structurally independent second interpreter for the demo subset in
the semantic-review suite. It imports neither the decoder, ISA nor
reference and re-derives the encodings from the RDNA 2 field layout. A
differential test compares both interpreters across all three fixtures on
boundary-dense and pseudorandom inputs.

Signed-off-by: Ranveer Soni <git@ranveersoni.me>
2026-11-22 14:20:32 +05:30

34 lines
1.1 KiB
TOML

# Benchmark corpus for the Phase 01 correctness-gated harness.
#
# Supported subset: `[[fixture]]` tables with string and integer-array values.
# A shader is timed only after it passes correctness in the same run. `sizes`
# are word counts for the one-invocation-per-word synthetic ABI.
# See docs/testing/benchmarks.md for the protocol and metadata fields.
[[fixture]]
name = "add"
stage = "compute"
source = "translated-rdna"
path = "fixtures/rdna2/add.bin"
input = [0, 1, 4294967295, 3989547400]
expected = [305419896, 305419897, 305419895, 0]
sizes = [4, 64, 256, 1024, 4096]
[[fixture]]
name = "bitwise-branch"
stage = "compute"
source = "translated-rdna"
path = "fixtures/rdna2/bitwise-branch.bin"
input = [0, 1, 4294967295, 3989547400]
expected = [305419896, 305419897, 315315847, 318723824]
sizes = [4, 64, 256, 1024, 4096]
[[fixture]]
name = "float-exact"
stage = "compute"
source = "translated-rdna"
path = "fixtures/rdna2/float-exact.bin"
input = [0, 1, 4294967295, 3989547400]
expected = [1091305472, 1091305472, 1092616192, 1092616192]
sizes = [4, 64, 256, 1024, 4096]