From 5c3d21086c15ed07bbcad8e580370e3a0eb619d8 Mon Sep 17 00:00:00 2001 From: Travis Geiselbrecht Date: Sun, 4 Feb 2007 21:57:56 +0000 Subject: [PATCH] whew, the numbers were looking terrible for sycalls, but it was just the app being off by a factor of 1000. It's still somewhat slower, but workable. null syscall speed on p3 500: haiku 6800 nanosecs beosr5 2200 nanosecs linux 680 nanosecs git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20071 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/system/benchmarks/syscallbench.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/system/benchmarks/syscallbench.c b/src/tests/system/benchmarks/syscallbench.c index fd4a7540df..ec9a548562 100644 --- a/src/tests/system/benchmarks/syscallbench.c +++ b/src/tests/system/benchmarks/syscallbench.c @@ -56,13 +56,13 @@ main(int argc, char *argv[]) libcall = test_func((void *)&getpid); // getpid is currently implemented as a library function returning the value of a global syscall = test_func((void *)&is_computer_on); - printf("overhead time: %ld microseconds\n", + printf("overhead time: %ld nanoseconds\n", (1000*(overhead))/ITERATIONS); - printf("libcall time: %ld microseconds\n", + printf("libcall time: %ld nanoseconds\n", (1000*(libcall-overhead))/ITERATIONS); - printf("syscall time: %ld microseconds\n", + printf("syscall time: %ld nanoseconds\n", (1000*(syscall-overhead))/ITERATIONS); return (0);