Skip to content

Commit

Permalink
Tune benchmark runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed May 29, 2019
1 parent d94c0ca commit 61a1037
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/primes_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,26 +183,26 @@ int main(int argc, const char *argv[]) {
tasks |= TEST_ALL_ALGOS;
}

size_t iters = 10;
size_t iters = 3;

if (tasks & TEST_U32) {
std::cout << "----- u32 -----" << std::endl;
measure_times<uint32_t>(tasks, 100000, iters);
measure_times<uint32_t>(tasks, 400000, iters);
}

if (tasks & TEST_U64) {
std::cout << "----- u64 -----" << std::endl;
measure_times<uint64_t>(tasks, 100000, iters);
measure_times<uint64_t>(tasks, 400000, iters);
}

if (tasks & TEST_S32) {
std::cout << "----- s32 -----" << std::endl;
measure_times<int32_t>(tasks, 100000, iters);
measure_times<int32_t>(tasks, 400000, iters);
}

if (tasks & TEST_S64) {
std::cout << "----- s64 -----" << std::endl;
measure_times<int64_t>(tasks, 100000, iters);
measure_times<int64_t>(tasks, 400000, iters);
}
return 0;
}

0 comments on commit 61a1037

Please sign in to comment.