summaryrefslogtreecommitdiffstats
path: root/runtime/bench2/run_bench
diff options
context:
space:
mode:
authorhunt <hunt>2006-03-15 09:40:44 +0000
committerhunt <hunt>2006-03-15 09:40:44 +0000
commit14cbcf6ac46e0579228bcc2246382d76a6b9220c (patch)
treef1283ead0f9aa46f22599322db5181d953aa5a6a /runtime/bench2/run_bench
parentf425170459496ec7267751106bc0d0b0f28fc45a (diff)
downloadsystemtap-steved-14cbcf6ac46e0579228bcc2246382d76a6b9220c.tar.gz
systemtap-steved-14cbcf6ac46e0579228bcc2246382d76a6b9220c.tar.xz
systemtap-steved-14cbcf6ac46e0579228bcc2246382d76a6b9220c.zip
Added multiple threads and better cpuspeed handling.
Diffstat (limited to 'runtime/bench2/run_bench')
-rwxr-xr-xruntime/bench2/run_bench17
1 files changed, 11 insertions, 6 deletions
diff --git a/runtime/bench2/run_bench b/runtime/bench2/run_bench
index 1f868ced..dad8c8ae 100755
--- a/runtime/bench2/run_bench
+++ b/runtime/bench2/run_bench
@@ -13,18 +13,23 @@ test0.code = ""
test0.run
test0.print
+# script test to print 100 chars
+test2a = Stapbench.new("printf 100 chars")
+test2a.code = "printf(\"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\\n\")"
+test2a.run
+test2a.print
+
+test2a.trans = RELAYFS
+test2a.run
+test2a.print
+
# runtime test to print 100 chars
test2 = Bench.new("printf 100 chars")
-test2.code = "_stp_printf (\"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\\n\");
+test2.code = "(void)_stp_printf (\"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\\n\");
_stp_print_flush();"
test2.run
test2.print
-# script test to print 100 chars
-test2a = Stapbench.new("printf 100 chars")
-test2a.code = "printf(\"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\\n\")"
-test2a.run
-test2a.print
# runtime test to print 5 integers
test3 = Bench.new("printf 5 integers")