From e8ad16832acc73b9c37de6330b3652b1b8b2c5a9 Mon Sep 17 00:00:00 2001 From: Tom Ebergen Date: Mon, 26 Feb 2024 13:23:21 +0100 Subject: [PATCH 1/2] remove code to nuke cache --- scripts/regression_test_runner.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/regression_test_runner.py b/scripts/regression_test_runner.py index fe680137e2d9..54906812e9a5 100644 --- a/scripts/regression_test_runner.py +++ b/scripts/regression_test_runner.py @@ -216,6 +216,4 @@ def run_benchmarks(runner, benchmark_list): print(f"Old timing geometric mean: {time_a}") print(f"New timing geometric mean: {time_b}") -# nuke cached benchmark data between runs -shutil.rmtree('duckdb_benchmark_data') exit(exit_code) From c34b99c75478afdf02b984511e19bb2c9a2b9938 Mon Sep 17 00:00:00 2001 From: Tom Ebergen Date: Mon, 26 Feb 2024 14:23:21 +0100 Subject: [PATCH 2/2] check if the duckdb_benchmark_dir is a directory first --- scripts/regression_test_runner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/regression_test_runner.py b/scripts/regression_test_runner.py index 54906812e9a5..9e69d13c01f7 100644 --- a/scripts/regression_test_runner.py +++ b/scripts/regression_test_runner.py @@ -216,4 +216,7 @@ def run_benchmarks(runner, benchmark_list): print(f"Old timing geometric mean: {time_a}") print(f"New timing geometric mean: {time_b}") +# nuke cached benchmark data between runs +if os.path.isdir("duckdb_benchmark_data"): + shutil.rmtree('duckdb_benchmark_data') exit(exit_code)