summaryrefslogtreecommitdiff
path: root/bench.c
diff options
context:
space:
mode:
Diffstat (limited to 'bench.c')
-rw-r--r--bench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench.c b/bench.c
index 65bb99c..abcaca9 100644
--- a/bench.c
+++ b/bench.c
@@ -50,8 +50,8 @@ int main()
puts("");
for (const struct sorter *s = sorters; s->name; s++) {
- for (size_t size = MAX_SIZE; size >= MIN_SIZE; size /= 10) {
- printf("%-*s ", SORT_WIDTH, size == MAX_SIZE ? s->name : "");
+ for (size_t size = MIN_SIZE; size <= MAX_SIZE; size *= 10) {
+ printf("%-*s ", SORT_WIDTH, size == MIN_SIZE ? s->name : "");
for (const struct generator *g = generators; g->name; g++) {
comparisons = 0;
g->func(buffer, size);