upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/bench_wave64.py
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 19:52:33 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 19:52:33 +0100
commit16a98e4bb7d12966d233ec4e6831e13771361192 (patch)
tree6200c91d6e71d1418a504da7a0bcefd6854c8033 /scripts/bench_wave64.py
parentf161481d34e5e38dcc2efbf2cf013ca017846a4a (diff)
parent162821017ea3c286c8bec860f3ff94f037912061 (diff)
Merge main into valu-int-misc (#1492)
tests/semantic/test_value_semantics.py AI-assisted.
Diffstat (limited to 'scripts/bench_wave64.py')
-rw-r--r--scripts/bench_wave64.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/scripts/bench_wave64.py b/scripts/bench_wave64.py
index 14b397f97..b41c6e97e 100644
--- a/scripts/bench_wave64.py
+++ b/scripts/bench_wave64.py
@@ -110,9 +110,16 @@ def main():
110 print(f"no reference output from {ref_name}: cannot compare") 110 print(f"no reference output from {ref_name}: cannot compare")
111 return 1 111 return 1
112 bad = [n for n, _, _ in CONFIGS[1:] if n in hashes and hashes[n] != ref] 112 bad = [n for n, _, _ in CONFIGS[1:] if n in hashes and hashes[n] != ref]
113 missing = [n for n, _, _ in CONFIGS[1:] if n not in hashes]
113 print(f"reference output hash: {next(iter(ref))} ({ref_name})") 114 print(f"reference output hash: {next(iter(ref))} ({ref_name})")
114 print("emulated output equals the reference" if not bad else f"OUTPUT DIFFERS from the reference: {', '.join(bad)}") 115 if bad:
115 return 1 if bad or len(hashes) < len(CONFIGS) else 0 116 print(f"OUTPUT DIFFERS from the reference: {', '.join(bad)}")
117 if missing:
118 print(f"incomplete comparison: no complete result from {', '.join(missing)}")
119 if bad or missing:
120 return 1
121 print("emulated output equals the reference")
122 return 0
116 123
117 124
118if __name__ == "__main__": 125if __name__ == "__main__":