From 8c235ce57600584d3126ad86520b4fb44765c8ec Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 14 Mar 2007 16:13:33 +0000 Subject: 2007-03-14 Martin Hunt * 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(). --- runtime/bench2/test_bench | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 runtime/bench2/test_bench (limited to 'runtime/bench2/test_bench') 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 + + -- cgit