Skip to content

Commit

Permalink
Merge pull request #339 from IntelPython/feature/log_compilation_ime
Browse files Browse the repository at this point in the history
Log warmup overhead time
  • Loading branch information
Diptorup Deb authored Feb 23, 2024
2 parents 6120680 + 374b4d1 commit 66e2931
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dpbench/infrastructure/benchmark_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,15 @@ def print(self, framework_name: str = "", framework_version: str = ""):
"median execution times:",
self._format_ns(self.median_exec_time),
)
warmup_ovhd_time = int(self.warmup_time) - int(
self.median_exec_time
)
print(
"warmup overhead time (warmup time - median execution time):",
self._format_ns(warmup_ovhd_time)
if warmup_ovhd_time > 0
else "N/A",
)
print("repeats:", self.repeats)
print("preset:", self.preset)
print("validated:", self.validation_state)
Expand Down

0 comments on commit 66e2931

Please sign in to comment.