Skip to content

Commit 66e2931

Browse files
author
Diptorup Deb
authored
Merge pull request #339 from IntelPython/feature/log_compilation_ime
Log warmup overhead time
2 parents 6120680 + 374b4d1 commit 66e2931

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)