summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2004-11-22 19:20:29 +0000
committerHavoc Pennington <hp@redhat.com>2004-11-22 19:20:29 +0000
commit25c1f310aafc8b3d89ee19656a64244e6f108dbb (patch)
treee5066ecd1e0875a2f77de2b8ce410703d03fcb3f /test
parent1b1dfafc344ad7b60b8156a1bbdbfc1b364bfa98 (diff)
2004-11-22 Havoc Pennington <hp@redhat.com>
* test/glib/test-profile.c (N_CLIENT_THREADS): run multiple threads for more time, so sysprof can get a grip on it. * dbus/dbus-string.c (_dbus_string_validate_utf8): remove pointless variable
Diffstat (limited to 'test')
-rw-r--r--test/glib/test-profile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/glib/test-profile.c b/test/glib/test-profile.c
index 762e2fd9..a9c502d6 100644
--- a/test/glib/test-profile.c
+++ b/test/glib/test-profile.c
@@ -26,8 +26,8 @@
#include <dbus/dbus-glib-lowlevel.h>
#include <stdlib.h>
-#define N_CLIENT_THREADS 1
-#define N_ITERATIONS 4000
+#define N_CLIENT_THREADS 4
+#define N_ITERATIONS 40000
#define PAYLOAD_SIZE 30
#define ECHO_PATH "/org/freedesktop/EchoTest"
#define ECHO_INTERFACE "org.freedesktop.EchoTest"
@@ -260,7 +260,7 @@ main (int argc, char *argv[])
secs = g_timer_elapsed (timer, NULL);
g_timer_destroy (timer);
- g_printerr ("%g seconds, %d round trips, %g seconds per pingpong\n",
+ g_printerr ("%g seconds, %d round trips, %f seconds per pingpong\n",
secs, sd.handled, secs/sd.handled);
#ifndef DBUS_DISABLE_ASSERT
g_printerr ("You should probably --disable-asserts before you profile as they have noticeable overhead\n");