From 2a511e91a8631589c62ba95a3974cc5ae4f7530f Mon Sep 17 00:00:00 2001 From: hunt Date: Tue, 28 Jun 2005 21:20:10 +0000 Subject: *** empty log message *** --- runtime/probes/bench/README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 runtime/probes/bench/README (limited to 'runtime/probes/bench') diff --git a/runtime/probes/bench/README b/runtime/probes/bench/README new file mode 100644 index 00000000..5eaded78 --- /dev/null +++ b/runtime/probes/bench/README @@ -0,0 +1,22 @@ +This is a benchmark program for the SystemTap Runtime. + +It works by instrumenting sys_read() and sys_write(). It calls each a million +times and times that. Then it puts an empty kprobe on one and jprobe on the +other and times that. Subtracting the difference between the two runs gives +the kprobe and jprobe overhead. The process is then repeated for more +complicated probes. + +Any system has some background activity going on that will generate sys_read +and sys_write calls. However, unless some major activity is going on, it +should be statistically insignificant. + +To Start: + +1. Build the test program. +> gcc -O3 -o time time.c + +2. Run the benchmarks +> ./run_bench + + + -- cgit