summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/test-bus-kernel-benchmark.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-06-05 10:26:00 +0200
committerKay Sievers <kay@vrfy.org>2013-06-05 10:26:00 +0200
commit83d97ce664806829b027c02708d648d469724362 (patch)
tree6626a466911392d6fa72477c02246307b536b0ca /src/libsystemd-bus/test-bus-kernel-benchmark.c
parentf3dbb13c8535882be9de14d1cf2b0656c96c89bb (diff)
bus: benchmark - adjust printf and MAX_SIZE
Diffstat (limited to 'src/libsystemd-bus/test-bus-kernel-benchmark.c')
-rw-r--r--src/libsystemd-bus/test-bus-kernel-benchmark.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsystemd-bus/test-bus-kernel-benchmark.c b/src/libsystemd-bus/test-bus-kernel-benchmark.c
index 2ece2a0029..d9ccdc2239 100644
--- a/src/libsystemd-bus/test-bus-kernel-benchmark.c
+++ b/src/libsystemd-bus/test-bus-kernel-benchmark.c
@@ -32,7 +32,7 @@
#include "bus-kernel.h"
#include "bus-internal.h"
-#define MAX_SIZE (8*1024*1024)
+#define MAX_SIZE (4*1024*1024)
static usec_t arg_loop_usec = 100 * USEC_PER_MSEC;
@@ -118,7 +118,7 @@ static void client_bisect(const char *address) {
if (csize <= 0)
break;
- fprintf(stderr, "%zu\t", csize);
+ printf("%zu\t", csize);
b->use_memfd = 0;
@@ -176,11 +176,11 @@ static void client_chart(const char *address) {
printf("SIZE\tCOPY\tMEMFD\n");
- for (csize = 1; csize < MAX_SIZE; csize *= 2) {
+ for (csize = 1; csize <= MAX_SIZE; csize *= 2) {
usec_t t;
unsigned n_copying, n_memfd;
- fprintf(stderr, "%zu\t", csize);
+ printf("%zu\t", csize);
b->use_memfd = 0;