svn rev #24472: trunk/src/tests/threads/

raeburn@MIT.EDU raeburn at MIT.EDU
Sat Oct 23 18:25:55 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24472
Commit By: raeburn
Log Message:
In profile-reading performance test, print microseconds not milliseconds.


Changed Files:
U   trunk/src/tests/threads/profread.c
Modified: trunk/src/tests/threads/profread.c
===================================================================
--- trunk/src/tests/threads/profread.c	2010-10-23 22:25:51 UTC (rev 24471)
+++ trunk/src/tests/threads/profread.c	2010-10-23 22:25:55 UTC (rev 24472)
@@ -273,8 +273,8 @@
      * performance issue you're chasing down, different values may be
      * of particular interest, so report all the info we've got.
      */
-    printf ("Overall run time with %d threads = %Lfs, %Lfms per iteration.\n",
-            n_threads, wallclock, 1000 * wallclock / iter_count);
+    printf ("Overall run time with %d threads = %Lfs, %.2Lfus per iteration.\n",
+            n_threads, wallclock, 1000000 * wallclock / iter_count);
     user = tvsub (finish.ru_utime, start.ru_utime);
     sys = tvsub (finish.ru_stime, start.ru_stime);
     total = user + sys;
@@ -287,7 +287,7 @@
             100 * user / wallclock / n_threads,
             100 * sys / wallclock / n_threads,
             100 * total / wallclock / n_threads);
-    printf ("Total CPU use per iteration per thread: %Lfms\n",
-            1000 * total / n_threads / iter_count);
+    printf ("Total CPU use per iteration per thread: %.2Lfus\n",
+            1000000 * total / n_threads / iter_count);
     return 0;
 }




More information about the cvs-krb5 mailing list