summaryrefslogtreecommitdiffstats
path: root/src/tests/threads
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2010-10-23 22:25:55 +0000
committerKen Raeburn <raeburn@mit.edu>2010-10-23 22:25:55 +0000
commit41f87a9682bc5d127b281c312ab45e53725d9010 (patch)
tree3a170e7e2f114290da24eb1425b59ae0cc6b5555 /src/tests/threads
parent5c3e187913cc3a8a3bc7ac37e49b43f9eb5996be (diff)
downloadkrb5-41f87a9682bc5d127b281c312ab45e53725d9010.tar.gz
krb5-41f87a9682bc5d127b281c312ab45e53725d9010.tar.xz
krb5-41f87a9682bc5d127b281c312ab45e53725d9010.zip
In profile-reading performance test, print microseconds not milliseconds
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24472 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/threads')
-rw-r--r--src/tests/threads/profread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/threads/profread.c b/src/tests/threads/profread.c
index ccc86a884f..2367b5a1d1 100644
--- a/src/tests/threads/profread.c
+++ b/src/tests/threads/profread.c
@@ -273,8 +273,8 @@ main (int argc, char *argv[])
* 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 @@ main (int argc, char *argv[])
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;
}