We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7feda2c commit 70945ceCopy full SHA for 70945ce
scripts/nvbench_compare.py
@@ -5,6 +5,7 @@
5
import os
6
import sys
7
8
+import jsondiff
9
import tabulate
10
from colorama import Fore
11
from nvbench_json import reader
@@ -371,9 +372,13 @@ def main():
371
372
global all_devices
373
all_devices = cmp_root["devices"]
374
- # This is blunt but works for now:
375
if ref_root["devices"] != cmp_root["devices"]:
376
print("Device sections do not match.")
377
+ print(
378
+ jsondiff.diff(
379
+ ref_root["devices"], cmp_root["devices"], syntax="symmetric"
380
+ )
381
382
sys.exit(1)
383
384
compare_benches(
0 commit comments