dbus/test/glib test-profile.c,1.6,1.7

Havoc Pennington hp at freedesktop.org
Mon Nov 22 11:20:31 PST 2004


Update of /cvs/dbus/dbus/test/glib
In directory gabe:/tmp/cvs-serv12821/test/glib

Modified Files:
	test-profile.c 
Log Message:
2004-11-22  Havoc Pennington  <hp at 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



Index: test-profile.c
===================================================================
RCS file: /cvs/dbus/dbus/test/glib/test-profile.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- test-profile.c	13 Nov 2004 07:07:47 -0000	1.6
+++ test-profile.c	22 Nov 2004 19:20:29 -0000	1.7
@@ -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 @@
   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");



More information about the dbus-commit mailing list