Add API to test name for reports

This commit is contained in:
Nikolas
2024-03-05 10:36:43 -08:00
parent 9f9ebc029a
commit 70f70cf28d
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ try:
sys.exit(1)
report = {
"test": "Blender Barbershop Render",
"test": f"Blender Barbershop Render {args.device.upper()}",
"score": score,
"unit": "seconds",
"version": version,

View File

@@ -117,7 +117,7 @@ for report in json_array:
scene_report = {
"timestamp": report['timestamp'],
"version": blender_version,
"test": f"Blender Benchmark {report['scene']['label']}",
"test": f"Blender Benchmark {report['scene']['label']} {DEVICE_TYPE}",
"score": round(report['stats']['samples_per_minute'], 2),
"unit": "samples per minute",
"device": report['device_info']['compute_devices'][0]['name']

View File

@@ -68,7 +68,7 @@ with open(log_path, encoding="utf-8") as log:
score = match.group(1)
report = {
"test": f"Unigine Superposition 2017 {args.preset}",
"test": f"Unigine Superposition 2017 {args.preset} ${args.api}",
"score": score,
"unit": "score"
}