From e77c8ae006041c4cbfa38cbb58cb72fd6f36ac73 Mon Sep 17 00:00:00 2001 From: Adarsh Yoga Date: Wed, 21 Feb 2024 06:41:05 +0000 Subject: [PATCH] log warmup overhead time --- dpbench/infrastructure/benchmark_results.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dpbench/infrastructure/benchmark_results.py b/dpbench/infrastructure/benchmark_results.py index d4b73239..43d04128 100644 --- a/dpbench/infrastructure/benchmark_results.py +++ b/dpbench/infrastructure/benchmark_results.py @@ -132,6 +132,12 @@ def print(self, framework_name: str = "", framework_version: str = ""): "median execution times:", self._format_ns(self.median_exec_time), ) + print( + "warmup overhead time (warmup time - median execution time):", + self._format_ns( + int(self.warmup_time) - int(self.median_exec_time) + ), + ) print("repeats:", self.repeats) print("preset:", self.preset) print("validated:", self.validation_state)