diff options
-rw-r--r-- | bench.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |