From 116918033b8b724b45b8f9eb28b4b8fbc013556f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 9 Oct 2023 16:45:13 -0400 Subject: [PATCH] Inform asv that there should be no warmup runs for time_remove benchmark Thanks to @trexfeathers for the RTFM pointers in https://github.com/airspeed-velocity/asv/issues/1347#issuecomment-1752652351 --- benchmarks/api.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/benchmarks/api.py b/benchmarks/api.py index f8c14796b8..aca559620e 100644 --- a/benchmarks/api.py +++ b/benchmarks/api.py @@ -103,10 +103,8 @@ def time_uninstall(self): self.ds.drop(subm["path"], recursive=True, what='all', reckless='kill') - # disabled since apparently setup is not running for each execution! - # TODO: fix up after hearing on https://github.com/airspeed-velocity/asv/issues/1347 - #def time_remove(self): - # self.ds.drop(what='all', reckless='kill', recursive=True) + def time_remove(self): + self.ds.drop(what='all', reckless='kill', recursive=True) def time_diff(self): self.ds.diff(fr="HEAD^") @@ -120,3 +118,6 @@ def time_status(self): def time_status_recursive(self): self.ds.status(recursive=True) + + +supers.time_remove.warmup_time = 0 \ No newline at end of file