Skip to content

Commit

Permalink
log warmup overhead time
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshyoga committed Feb 21, 2024
1 parent b701ca6 commit 4f73783
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 4f73783

Please sign in to comment.