From 5f502a24c687a4ecd8ee6b4f4adc2db9e47b4122 Mon Sep 17 00:00:00 2001 From: Shaun Cheng Date: Tue, 6 Dec 2016 12:42:22 -0500 Subject: [PATCH] benchmark print readability --- src/bench.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bench.c b/src/bench.c index b52aa2e..f61ef4b 100644 --- a/src/bench.c +++ b/src/bench.c @@ -23,6 +23,7 @@ #include #include #include +#include static void _errno_assert(const char *file, int line, int i) { if (i != 0) { @@ -238,7 +239,8 @@ static candidate sparkey_candidate_compressed = { /* main */ void test(candidate *c, int n, int lookups) { - printf("Testing bulk insert of %d elements and %d random lookups\n", n, lookups); + setlocale(LC_NUMERIC, ""); + printf("Testing bulk insert of %'d elements and %'d random lookups\n", n, lookups); printf(" Candidate: %s\n", c->name); rm_all_rec(c->files());