summaryrefslogtreecommitdiffstats
path: root/runtime/bench2/test_bench
diff options
context:
space:
mode:
authorhunt <hunt>2007-03-14 16:13:33 +0000
committerhunt <hunt>2007-03-14 16:13:33 +0000
commit8c235ce57600584d3126ad86520b4fb44765c8ec (patch)
tree4a7ee542bda895a54edbb5863d68bce19d4f135f /runtime/bench2/test_bench
parentfbbb89fffb3533a3b4fb63c15eaeaae6956391eb (diff)
downloadsystemtap-steved-8c235ce57600584d3126ad86520b4fb44765c8ec.tar.gz
systemtap-steved-8c235ce57600584d3126ad86520b4fb44765c8ec.tar.xz
systemtap-steved-8c235ce57600584d3126ad86520b4fb44765c8ec.zip
2007-03-14 Martin Hunt <hunt@redhat.com>
* bench2/bench.rb: Updated to work with new transport and new itest.c. * bench2/Makefile: Updated for new itest.c * bench2/itest.c: Rewritten to use multiple threads and automatically divide the workload among the threads. * print.c (_stp_print_flush): Move to print_new.c and print_old.c. * print_new.c: New file containing _stp_print_flush() for the new transport. * print_old.c: Ditto for old transport. * runtime.h (STP_OLD_TRANSPORT): Define (errk): Define. (MAXSTRINGLEN): Define if not already defined. * io.c (_stp_vlog): Use _stp_ctl_write().
Diffstat (limited to 'runtime/bench2/test_bench')
-rwxr-xr-xruntime/bench2/test_bench25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/bench2/test_bench b/runtime/bench2/test_bench
new file mode 100755
index 00000000..4bf90744
--- /dev/null
+++ b/runtime/bench2/test_bench
@@ -0,0 +1,25 @@
+#!/usr/bin/env ruby
+load './bench.rb'
+
+
+# script test to printf 100 chars
+test3 = Stapbench.new("printf 100 chars")
+test3.code = "printf(\"123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\\n\")"
+test3.run
+test3.print
+
+test3.trans = BULK
+test3.run
+test3.print
+
+test3.trans = STREAM
+test3.outfile="/dev/null"
+test3.run
+test3.print
+
+test3.trans = BULK
+test3.outfile="/dev/null"
+test3.run
+test3.print
+
+