diff options
Diffstat (limited to 'TS/host')
-rw-r--r-- | TS/host/app.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/TS/host/app.c b/TS/host/app.c index cb19c4b..bfa14df 100644 --- a/TS/host/app.c +++ b/TS/host/app.c @@ -224,6 +224,15 @@ int main(int argc, char **argv) for (int rep = 0; rep < p.n_warmup + p.n_reps; rep++) { + if (rep >= p.n_warmup) { + start(&timer, 6, 0); + } + streamp(tSeries, AMean, ASigma, ts_size - query_length - 1, + query, query_length, query_mean, query_std); + if (rep >= p.n_warmup) { + stop(&timer, 6); + } + #if WITH_ALLOC_OVERHEAD if (rep >= p.n_warmup) { start(&timer, 0, 0); @@ -396,15 +405,6 @@ int main(int argc, char **argv) #endif #endif - if (rep >= p.n_warmup) { - start(&timer, 6, 0); - } - streamp(tSeries, AMean, ASigma, ts_size - query_length - 1, - query, query_length, query_mean, query_std); - if (rep >= p.n_warmup) { - stop(&timer, 6); - } - int status = (minHost == result.minValue); if (status) { printf("[" ANSI_COLOR_GREEN "OK" ANSI_COLOR_RESET |