Skip to content

Commit f676e3f

Browse files
author
Tobias Kopp
committed
[Benchmark] Use correct timeout value
1 parent 9a48a43 commit f676e3f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

benchmark/database_connectors/mutable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run_configuration(self, experiment, config_name, config, yml):
137137
for case, query in cases.items():
138138
# Produce code to load data into tables with scale factor
139139
path_to_data = os.path.join('benchmark', suite, 'data')
140-
case_imports = create_import_statements(path_to_data, yml['data'], case) # TODO refactor
140+
case_imports = create_import_statements(path_to_data, yml['data'], case)
141141
import_str = '\n'.join(case_imports)
142142

143143
query_str = import_str + '\n' + query
@@ -147,7 +147,7 @@ def run_configuration(self, experiment, config_name, config, yml):
147147
durations = self.benchmark_query(command, query_str, yml['pattern'], timeout, path_to_file)
148148
except BenchmarkTimeoutException as ex:
149149
tqdm.write(str(ex))
150-
execution_times[case] = TIMEOUT_PER_CASE * 1000
150+
execution_times[case] = timeout * 1000
151151
else:
152152
execution_times[case] = durations[0]
153153
except BenchmarkError as ex:

benchmark/database_connectors/postgresql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def execute(self, n_runs, params: dict):
9191
with open(TMP_SQL_FILE) as tmp:
9292
tqdm.write(" " + " ".join(tmp.readlines()))
9393

94-
timeout = DEFAULT_TIMEOUT + TIMEOUT_PER_CASE
94+
timeout = TIMEOUT_PER_CASE
9595
benchmark_info = f"{suite}/{benchmark}/{experiment} [PostgreSQL]"
9696
try:
9797
durations = self.run_command(command, timeout, benchmark_info)

0 commit comments

Comments
 (0)