Skip to content

Commit 5aca459

Browse files
author
Raghuveer Devulapalli
authored
Merge pull request #37 from r-devulap/bench-changes
Benchmark various array sizes that fit into different levels of cache
2 parents 9c44d2a + af36e20 commit 5aca459

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

benchmarks/bench-qsort-common.h

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@
2020

2121
#define BENCH(func, type) \
2222
MY_BENCHMARK_CAPTURE( \
23-
func, type, random_10000, 10000, std::string("random")); \
23+
func, type, random_5k, 5000, std::string("random")); \
2424
MY_BENCHMARK_CAPTURE( \
25-
func, type, random_100000, 100000, std::string("random")); \
25+
func, type, random_100k, 100000, std::string("random")); \
2626
MY_BENCHMARK_CAPTURE( \
27-
func, type, sorted_10000, 10000, std::string("sorted")); \
27+
func, type, random_1m, 1000000, std::string("random")); \
2828
MY_BENCHMARK_CAPTURE( \
29-
func, type, constant_10000, 10000, std::string("constant")); \
29+
func, type, random_10m, 10000000, std::string("random")); \
3030
MY_BENCHMARK_CAPTURE( \
31-
func, type, reverse_10000, 10000, std::string("reverse"));
31+
func, type, sorted_10k, 10000, std::string("sorted")); \
32+
MY_BENCHMARK_CAPTURE( \
33+
func, type, constant_10k, 10000, std::string("constant")); \
34+
MY_BENCHMARK_CAPTURE( \
35+
func, type, reverse_10k, 10000, std::string("reverse"));
3236

3337

3438
#endif

0 commit comments

Comments
 (0)