summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-05-29 01:18:24 +0800
committerKeuin <[email protected]>2022-05-29 02:30:36 +0800
commitf0d6585bb2d8a13d7886d28a6545caa0457b4ca0 (patch)
treecb2f50dd057f00b74cff64affa3880c4c7e5e757 /main.c
parent86a701d3af323dcffe17b07e772e6be77c561dd8 (diff)
Prettier benchmark result.
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index b6aa680..27f37dd 100644
--- a/main.c
+++ b/main.c
@@ -292,7 +292,7 @@ void benchmark() {
const int threads[] = {1, 2, 4, 8, 16, 32, 0};
for (int i = 0; threads[i] > 0; ++i) {
- printf(" %d thread: %.3f sec%s\n",
+ printf(" %3.d thread: %9.3f sec%s\n",
threads[i], (double) KEYSPACE_SIZE / key_per_sec / threads[i],
(threads[i] != 1) ? " (estimate)" : "");
}