mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
52 lines
1.7 KiB
TOML
52 lines
1.7 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]
|
|
|
|
[[fixture]]
|
|
name = "or"
|
|
stage = "compute"
|
|
source = "translated-rdna"
|
|
path = "fixtures/rdna2/or.bin"
|
|
input = [0, 1, 4294967295, 2153054378, 2141912917, 2147483648, 5570730]
|
|
expected = [2153054378, 2153054379, 4294967295, 2153054378, 4294967295, 2153054378, 2153054378]
|
|
sizes = [7, 64, 256, 1024, 4096]
|
|
|
|
[[fixture]]
|
|
name = "shifts"
|
|
stage = "compute"
|
|
source = "translated-rdna"
|
|
path = "fixtures/rdna2/shifts.bin"
|
|
input = [0, 1, 2, 30, 31, 32, 33, 63, 64, 2147483648, 2147483681, 4294967295]
|
|
expected = [2, 1073741830, 536870924, 3221225474, 2147483649, 2, 1073741830, 2147483649, 2, 2, 1073741830, 2147483649]
|
|
sizes = [12, 64, 256, 1024, 4096]
|