diff options
Diffstat (limited to 'scripts/bench_wave64.py')
| -rw-r--r-- | scripts/bench_wave64.py | 11 |
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 | ||
| 118 | if __name__ == "__main__": | 125 | if __name__ == "__main__": |