Skip to content

Commit b41acf3

Browse files
authored
tpch: move reading of SQL queries out of timed span. (#16357)
1 parent 7477aa6 commit b41acf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

benchmarks/src/tpch/run.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,12 @@ impl RunOpt {
147147
let mut millis = vec![];
148148
// run benchmark
149149
let mut query_results = vec![];
150+
151+
let sql = &get_query_sql(query_id)?;
152+
150153
for i in 0..self.iterations() {
151154
let start = Instant::now();
152155

153-
let sql = &get_query_sql(query_id)?;
154-
155156
// query 15 is special, with 3 statements. the second statement is the one from which we
156157
// want to capture the results
157158
let mut result = vec![];

0 commit comments

Comments
 (0)