This is a cvs module of the tcllib sourceforge project.
Tclbench is a set of tools to compare performances between different Tcl and/or Tk versions.
runbench.tcl ?-option value ...? ?file ...?
The runbench.tcl application provides the overall management for the execution of bench�� marks. If no specific benchmark files are provided on the command line itself the application will use all directory containing the application itself. If files are provided all files matching the glob pattern *tk* are assumed to be benchmarks for the Tk toolkit.
The following options are recognized by the application:
- Causes the application to print a list of the recognized option plus short explanations of their meaning
- Takes a boolean value (0 or 1). True means that errors are thrown, else they are ignored.
- The value of this option is a positive integer number and declares how often the body of benchmarks should be executed to get accurate timing results. This is a global maximum value which can be overidden by the individual benchmarks.
- Declares the minimum version of tcl interpreters the application is allowed to use in the benchmarking.
- Declares the maximum version of tcl interpreters the application is allowed to use in the benchmarking.
- Restricts the benchmarking to benchmarks whose description matches the regexp pattern specified as the value of this option. If both -match and -rmatch are specified benchmarks have to fulfill both conditions to be executed.
- Restricts the benchmarking to benchmarks whose description matches the glob pattern specified as the value of this option. If both -match and -rmatch are specified benchmarks have to fulfill both conditions to be executed.
- Takes a version number as value and causes the application to normalize the timing values to the value of the given version.
- Forces the application to skip all tcl related benchmarks. Takes no additional value.
- Forces the application to skip all tk related benchmarks. Takes no additional value.
- Declares the style to use when generating the output for the benchmarks. Accepts text, csv and list. text is the default.
- Accepts a list of paths to search for tcl interpreters. If no paths are specified the paths in the environment variable PATH are used.
- Activates the output of interim status info. Takes no additional value
Kroc - 23/06/2004 : I've done a TclBench.kit (v 1.15) to test Tclkit performance. It includes Tcllib 1.6 and Tclx 8.4 for linux and win32 but it should work on any platform.
TclBench.kit ?-option value ...? ?file ...?
Similar to runbench.tcl above, except:
- looks for tclkit interpreters too.
- added file style to output results to benchmark.txt instead of stdout.
- command used: TclBench_1.15.2.kit -verbose -output file
- checked: tclkit-846-linux-x86static.upx, tclkit-846-linux-x86static and tclkit-840-linux-x86
- computer: Crusoe 600 MHz - 192 Mb RAM Laptop running linux 2.6.6
- result: http://www.kroc.tk/tclkit/TclBench_linux_result.txt
- command used: tclsh.exe TclBench_1.15.2.kit -verbose -output file
- checked: tclkit-846-win32-sh.exe, tclkit-846-win32.exe and tclkit-840-win32.exe
- computer: Celeron 600 MHz - 128 Mb RAM PC running Windows 98 SE
- result: http://www.kroc.tk/tclkit/TclBench_win98se_result.txt
category package | category performance