Skip to content

Commit 374b4d1

Browse files
committed
log warmup overhead time
1 parent 6120680 commit 374b4d1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dpbench/infrastructure/benchmark_results.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,15 @@ def print(self, framework_name: str = "", framework_version: str = ""):
132132
"median execution times:",
133133
self._format_ns(self.median_exec_time),
134134
)
135+
warmup_ovhd_time = int(self.warmup_time) - int(
136+
self.median_exec_time
137+
)
138+
print(
139+
"warmup overhead time (warmup time - median execution time):",
140+
self._format_ns(warmup_ovhd_time)
141+
if warmup_ovhd_time > 0
142+
else "N/A",
143+
)
135144
print("repeats:", self.repeats)
136145
print("preset:", self.preset)
137146
print("validated:", self.validation_state)

0 commit comments

Comments
 (0)