aboutsummaryrefslogtreecommitdiff
path: root/bench.tcl
diff options
context:
space:
mode:
authorantirez <antirez>2005-03-02 12:36:47 +0000
committerantirez <antirez>2005-03-02 12:36:47 +0000
commit1b20d15f92fc6652e2fb601f940dc1dc19193368 (patch)
treed3b1022a535a341bb09c7f2151d3c0da7d4a7f4c /bench.tcl
parentffc24892ceb6f1a02ca9201efc0074637371a0c0 (diff)
downloadjimtcl-1b20d15f92fc6652e2fb601f940dc1dc19193368.zip
jimtcl-1b20d15f92fc6652e2fb601f940dc1dc19193368.tar.gz
jimtcl-1b20d15f92fc6652e2fb601f940dc1dc19193368.tar.bz2
non local literal sharing disabled.
bench.tcl modified to be more verbose.
Diffstat (limited to 'bench.tcl')
-rw-r--r--bench.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/bench.tcl b/bench.tcl
index edd1bc0..45a09cc 100644
--- a/bench.tcl
+++ b/bench.tcl
@@ -2,8 +2,9 @@ proc bench {title script} {
while {[string length $title] < 20} {
append title " "
}
- catch {time $script} res
- puts "$title - $res"
+ if {[catch {puts "$title - [time $script]"}]} {
+ puts "$title - This test can't run on this interpreter"
+ }
}
### BUSY LOOP ##################################################################
@@ -197,4 +198,4 @@ bench {ary} {ary 100000}
bench {repeat} {use_repeat}
bench {upvar} {upvartest}
bench {nested loops} {nestedloops}
-bench {rotate} {rotate 100000} \ No newline at end of file
+bench {rotate} {rotate 100000}