From 4f73783abfec26d27ab39a88c8f28014624497d8 Mon Sep 17 00:00:00 2001 From: Adarsh Yoga Date: Wed, 21 Feb 2024 17:51:14 +0000 Subject: [PATCH] log warmup overhead time --- dpbench/infrastructure/benchmark_results.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dpbench/infrastructure/benchmark_results.py b/dpbench/infrastructure/benchmark_results.py index d4b73239..e34746d1 100644 --- a/dpbench/infrastructure/benchmark_results.py +++ b/dpbench/infrastructure/benchmark_results.py @@ -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)