Tcl Source Code

Artifact [37dad0b02d]
Login

Artifact 37dad0b02d2249d7066675b6932a45f069af4352:

Attachment "219166.bench" to ticket [219166ffff] added by msofer 2001-09-07 20:31:26.
TCL_INTERP: 1:8.4a4 2:8.4a4
STARTED 2001-09-07 10:11:21 (runbench.tcl v1.11)
Benchmark 1:8.4a4 /CVS/tcl_SF_clean/unix/tclsh
bbccdeefhkllmmmmprrssstuvw 00:04:08 elapsed
Benchmark 2:8.4a4 /CVS/tcl_SF_clean/unix/tclsh1 <<<< patched
bbccdeefhkllmmmmprrssstuvw 00:04:07 elapsed
000 VERSIONS:                               1:8.4a4 2:8.4a4
001 BASE64 decode 10                            396     399
002 BASE64 decode 100                          3243    3167
003 BASE64 decode 1000                        31411   30848
004 BASE64 decode 10000                      308819  306738
005 BASE64 decode2 10                           366     366
006 BASE64 decode2 100                         3093    3019
007 BASE64 decode2 1000                       29484   29352
008 BASE64 decode2 10000                     293406  290043
009 BASE64 encode 10                            286     285
010 BASE64 encode 100                          2411    2377
011 BASE64 encode 1000                        23427   23108
012 BASE64 encode 10000                      232649  229158
013 BASE64 encode2 10                           282     276
014 BASE64 encode2 100                         2163    2113
015 BASE64 encode2 1000                       22291   20795
016 BASE64 encode2 10000                     213796  207917
017 BIN bitset-v1 1000 chars                  12673   12364
018 BIN bitset-v1 5000 chars                  61658   60573
019 BIN bitset-v1 10000 chars                122818  120912
020 BIN bitset-v2 1000 chars                   6390    6173
021 BIN bitset-v2 5000 chars                  32611   31463
022 BIN bitset-v2 10000 chars                 66989   64664
023 BIN bitset-v3 1000 chars                   2056    2060
024 BIN bitset-v3 5000 chars                  11969   11823
025 BIN bitset-v3 10000 chars                 27086   26758
026 BIN c scan, 1000b                           327     326
027 BIN c scan, 5000b                          1580    1729
028 BIN c scan, 10000b                         4585    4608
029 CATCH no catch used                           2       4
030 CATCH return error                           29      26
031 CATCH return ok                               2       4
032 DATA access in a list                      1340    1349
033 DATA access in an array                    2016    2012
034 DATA create in a list                       960     960
035 DATA create in an array                    2376    2497
036 EVAL cmd and mixed lists                   1199    1196
037 EVAL cmd eval as list                         8       7
038 EVAL cmd eval as string                      21      21
039 EVAL cmd eval in list obj var                10       9
040 EVAL list cmd and mixed lists              1185    1181
041 EVAL list cmd and pure lists                 96      95
042 EXPR braced                                  12      12
043 EXPR fifty operands                          20      20
044 EXPR incr with expr                           2       2
045 EXPR incr with incr                           5       5
046 EXPR inline                                  13      12
047 EXPR one operand                              4       4
048 EXPR ten operands                             5       6
049 EXPR unbraced                                76      73
050 FCOPY binary: 160K                         6604    6334
051 FCOPY encoding: 160K                      23147   23156
052 FCOPY std: 160K                            6410    6406
053 HEAPSORT size 10                            493     498
054 HEAPSORT size 50                           3394    3447
055 HEAPSORT size 100                          7693    7838
056 IF else true al                              15      17
057 IF else true numeric                          7       9
058 IF elseif true al                            16      16
059 IF elseif true numeric                        7       7
060 IF if false al/al                            11      11
061 IF if false al/num                            9       9
062 IF if false num/num                           7       6
063 IF if true al                                11      11
064 IF if true al/al                             11      12
065 IF if true num/num                            6       6
066 IF if true numeric                            5       5
067 IF multi 1st true                             7       5
068 IF multi 2nd true                             6       7
069 IF multi 9th true                            14      16
070 IF multi default true                        16      14
071 KLIST shuffle0 llength 1                     46      48
072 KLIST shuffle0 llength 10                   121     118
073 KLIST shuffle0 llength 100                  955     959
074 KLIST shuffle0 llength 1000               10783   10768
075 KLIST shuffle0 llength 10000             175916  176152
076 KLIST shuffle1-s llength 1                   38      38
077 KLIST shuffle1-s llength 10                 176     175
078 KLIST shuffle1-s llength 100               2347    2286
079 KLIST shuffle1-s llength 1000             91211   90998
080 KLIST shuffle1a llength 1                    45      45
081 KLIST shuffle1a llength 10                  198     195
082 KLIST shuffle1a llength 100                1879    1823
083 KLIST shuffle1a llength 1000              18835   18117
084 KLIST shuffle1a llength 10000            193359  185960
085 KLIST shuffle2 llength 1                     44      43
086 KLIST shuffle2 llength 10                   215     215
087 KLIST shuffle2 llength 100                 2011    1964
088 KLIST shuffle2 llength 1000               20597   20182
089 KLIST shuffle2 llength 10000             235920  235613
090 KLIST shuffle3 llength 1                     35      33
091 KLIST shuffle3 llength 10                   147     144
092 KLIST shuffle3 llength 100                 1353    1319
093 KLIST shuffle3 llength 1000               15664   15518
094 KLIST shuffle3 llength 10000             403082  401780
095 KLIST shuffle4 llength 1                     36      35
096 KLIST shuffle4 llength 10                   157     154
097 KLIST shuffle4 llength 100                 1438    1397
098 KLIST shuffle4 llength 1000               14099   13744
099 KLIST shuffle4 llength 10000             145874  142458
100 KLIST shuffle5-s llength 1                   18      19
101 KLIST shuffle5-s llength 10                 122     117
102 KLIST shuffle5-s llength 100               1307    1243
103 KLIST shuffle5-s llength 1000             32505   32304
104 KLIST shuffle5a llength 1                    22      20
105 KLIST shuffle5a llength 10                  131     125
106 KLIST shuffle5a llength 100                1180    1159
107 KLIST shuffle5a llength 1000              14025   13745
108 KLIST shuffle5a llength 10000            386803  383443
109 LIST append to list                         294     295
110 LIST exact search, first item                 8       7
111 LIST exact search, last item                 32      32
112 LIST exact search, middle item               13      13
113 LIST exact search, non-item                  84      84
114 LIST exact search, typed item                21      21
115 LIST exact search, untyped item              32      32
116 LIST index first element                      6       6
117 LIST index last element                       6       6
118 LIST index middle element                     4       4
119 LIST insert an item at "end"                 40      41
120 LIST insert an item at middle                51      50
121 LIST insert an item at start                 52      51
122 LIST iterate list                          2095    2093
123 LIST join list                              528     527
124 LIST large, early range                      12      13
125 LIST large, late range                       14      13
126 LIST length, pure list                        6       6
127 LIST remove first element                    51      51
128 LIST remove in mixed list                    54      54
129 LIST remove last element                     49      48
130 LIST remove middle element                   51      50
131 LIST replace first el with multiple          54      54
132 LIST replace first element                   42      42
133 LIST replace in mixed list                   46      47
134 LIST replace last el with multiple           44      43
135 LIST replace last element                    40      41
136 LIST replace middle el with multiple         49      47
137 LIST replace middle element                  42      42
138 LIST replace range                           50      50
139 LIST small, early range                      10       7
140 LIST small, late range                        8       7
141 LIST sort                                  1294    1290
142 LIST sorted search, first item                7       7
143 LIST sorted search, last item                 7       7
144 LIST sorted search, middle item               7       7
145 LIST sorted search, non-item                  9       9
146 LIST sorted search, typed item                8       8
147 LIST typed sort                            1126    1126
148 LOOP for (to 1000)                         1463    1462
149 LOOP for, iterate list                     1887    1884
150 LOOP for, iterate string                   2608    2607
151 LOOP foreach, iterate list                 1107    1108
152 LOOP foreach, iterate string               1325    1328
153 LOOP while (to 1000)                       1462    1460
154 MAP regsub -nocase, no match                671     673
155 MAP regsub 1 val                           2246    2250
156 MAP regsub 1 val -nocase                   2258    2255
157 MAP regsub 2 val                          10141   10147
158 MAP regsub 2 val -nocase                  10148   10156
159 MAP regsub 3 val                          13613   13612
160 MAP regsub 3 val -nocase                  13567   13580
161 MAP regsub 4 val                          17032   17035
162 MAP regsub 4 val -nocase                  17005   17003
163 MAP regsub short                             96     101
164 MAP regsub, no match                        673     671
165 MAP string -nocase, no match               2582    2581
166 MAP string 1 val                            284     290
167 MAP string 1 val -nocase                   1344    1343
168 MAP string 2 val                            787     787
169 MAP string 2 val -nocase                   2536    2532
170 MAP string 3 val                            969     967
171 MAP string 3 val -nocase                   3712    3712
172 MAP string 4 val                           1217    1209
173 MAP string 4 val -nocase                   4423    4430
174 MAP string short                             12      13
175 MAP string, no match                        478     474
176 MATRIX mult 5x5                             447     449
177 MATRIX mult 10x10                          2865    2862
178 MATRIX mult 15x15                          9078    9071
179 MATRIX transposition-0                     3638    3644
180 MATRIX transposition-1                     2798    2791
181 MD5 msg len 10                             1326    1317
182 MD5 msg len 100                            2378    2320
183 MD5 msg len 1000                          17084   16902
184 MD5 msg len 10000                        168672  166139
185 MTHD array stored proc call                   6       6
186 MTHD direct ns proc call                      4       2
187 MTHD imported ns proc call                    4       2
188 MTHD indirect proc eval                      13      11
189 MTHD indirect proc eval #2                   19      21
190 MTHD inline call                              2       2
191 MTHD interp alias proc call                   9      10
192 MTHD ns lookup call                          40      39
193 MTHD switch method call                      18      18
194 PROC do-nothing, no args                      3       3
195 PROC do-nothing, one arg                      3       3
196 PROC explicit return                          3       3
197 PROC explicit return (2)                      2       2
198 PROC explicit return (3)                      3       3
199 PROC heavily commented                        3       3
200 PROC implicit return                          4       4
201 PROC implicit return (2)                      4       4
202 PROC implicit return (3)                      2       1
203 PROC local links with global                442     442
204 PROC local links with upvar                 401     400
205 PROC local links with variable              388     388
206 RE 1-char long-end                           49      50
207 RE 1-char long-end catching                  88      90
208 RE 1-char long-middle                        32      31
209 RE 1-char long-middle catching               69      70
210 RE 1-char long-start                         12      14
211 RE 1-char long-start catching                52      50
212 RE 1-char short                              14      15
213 RE 1-char short catching                     50      52
214 RE basic                                     12      12
215 RE basic catching                            55      56
216 RE c-comment long                            60      60
217 RE c-comment long catching                  167     167
218 RE c-comment long nomatch                    89      89
219 RE c-comment long nomatch catching           90      90
220 RE c-comment long pmatch                     99      99
221 RE c-comment long pmatch catching           100      99
222 RE c-comment many *s                        102     101
223 RE c-comment many *s catching               271     273
224 RE c-comment nomatch                         18      17
225 RE c-comment nomatch catching                20      20
226 RE c-comment simple                          31      30
227 RE c-comment simple catching                119     119
228 RE count all matches                         91      92
229 RE extract all matches                      109     110
230 RE literal regexp                            20      20
231 RE n-char long-end                           50      51
232 RE n-char long-end catching                  97      96
233 RE n-char long-middle                        32      33
234 RE n-char long-middle catching               79      78
235 RE n-char long-start                         13      13
236 RE n-char long-start catching                62      60
237 RE n-char short                              14      15
238 RE n-char short catching                     60      58
239 RE var-based regexp                          21      22
240 READ 595K, gets                          160994  165829
241 READ 595K, read                           36824   36738
242 READ 595K, read & dyn buffer              38345   38339
243 READ 595K, read & size                    36747   36736
244 READ 595K, read & small buffer           154214  157858
245 READ 3050b, gets                            836     855
246 READ 3050b, read                            263     208
247 READ 3050b, read & dyn buffer               242     245
248 READ 3050b, read & size                     218     276
249 READ 3050b, read & small buffer             772     782
250 READ bin 595K, gets                      167240  171067
251 READ bin 595K, read                       10969   10873
252 READ bin 595K, read & dyn buffer          12232   12126
253 READ bin 595K, read & size                10975   10841
254 READ bin 595K, read & small buffer       124920  126471
255 READ bin 3050b, gets                        895     920
256 READ bin 3050b, read                         47     102
257 READ bin 3050b, read & dyn buffer           129      82
258 READ bin 3050b, read & size                 111      57
259 READ bin 3050b, read & small buffer         676     688
260 SHA sha1 msg len 10                        3287    3292
261 SHA sha1 msg len 100                       6141    6164
262 SHA sha1 msg len 1000                     45688   46196
263 SHA sha1 msg len 10000                   444630  452172
264 SHA sha1DF msg len 10                      1431    1441
265 SHA sha1DF msg len 100                     2770    2748
266 SHA sha1DF msg len 1000                   21096   21279
267 SHA sha1DF msg len 10000                 206572  208214
268 STARTUP time to launch tclsh               9654    9677
269 STR append                                   29      29
270 STR append (1KB + 1KB)                       18      20
271 STR append (1MB + (1b + 1K + 1b) * 100)    8060    7959
272 STR append (1MB + 1KB * 20)                6874    6914
273 STR append (1MB + 1KB * 1000)             14694   14646
274 STR append (1MB + 1KB)                     6724    6787
275 STR append (1MB + 1MB * 3)                28318   28113
276 STR append (1MB + 1MB * 5)                35437   35258
277 STR append (1MB + 2b * 1000)               8560    8625
278 STR append (10KB + 1KB)                      25      27
279 STR first (failure)                          65      63
280 STR first (success)                           6       8
281 STR first (total failure)                    55      56
282 STR index 0                                   7       7
283 STR index 100                                 9       7
284 STR index 500                                 7       7
285 STR info locals match                       390     392
286 STR last (failure)                           54      54
287 STR last (success)                            6       6
288 STR last (total failure)                     40      40
289 STR length (==4010)                           6       6
290 STR length of a LIST                          4       3
291 STR length static str                         2       4
292 STR match, complex (failure)                 63      67
293 STR match, complex (success early)            9       6
294 STR match, complex (success late)            77      93
295 STR match, complex (total failure)           47      48
296 STR match, simple (failure)                   6       7
297 STR match, simple (success early)             6       6
298 STR match, simple (success late)              8       5
299 STR match, simple (total failure)             6       6
300 STR range, index 100..200 of 4010            10       9
301 STR repeat, 4010 chars * 10                  53      52
302 STR repeat, 4010 chars * 100               1635    1643
303 STR repeat, abcdefghij * 10                   8       6
304 STR repeat, abcdefghij * 100                 24      24
305 STR repeat, abcdefghij * 1000               198     198
306 STR replace, equal replacement               27      26
307 STR replace, longer replacement              26      25
308 STR replace, no replacement                  23      22
309 STR reverse iter/append, 10 c                37      40
310 STR reverse iter/append, 10 uc               39      39
311 STR reverse iter/append, 100 c              259     261
312 STR reverse iter/append, 100 uc             257     260
313 STR reverse iter/append, 400 c              986    1001
314 STR reverse iter/append, 400 uc             981     983
315 STR reverse iter/set, 10 c                   43      42
316 STR reverse iter/set, 10 uc                  42      42
317 STR reverse iter/set, 100 c                 355     354
318 STR reverse iter/set, 100 uc                356     366
319 STR reverse iter/set, 400 c                1489    1478
320 STR reverse iter/set, 400 uc               1511    1509
321 STR reverse recursive, 10 c                 100      95
322 STR reverse recursive, 10 uc                 92      87
323 STR reverse recursive, 100 c                960     911
324 STR reverse recursive, 100 uc               909     880
325 STR reverse recursive, 400 c               5232    5095
326 STR reverse recursive, 400 uc              6181    6075
327 STR split iter, 4000 uchars                5528    5518
328 STR split iter, 4010 chars                 5475    5458
329 STR split iter, rand 100 c                  271     264
330 STR split iter, rand 1000 c                1752    1756
331 STR split iter, rand 10000 c              14396   14453
332 STR split, 4000 uchars                     1122    1109
333 STR split, 4010 chars                      1056    1051
334 STR split, rand 100 c                       151     150
335 STR split, rand 1000 c                      641     644
336 STR split, rand 10000 c                    3302    3280
337 STR str $a eq $b                             10       9
338 STR str $a eq $b (same obj)                   9       9
339 STR str $a equal ""                           8       6
340 STR str $a ne $b                             10      10
341 STR str $a ne $b (same obj)                   9       9
342 STR str num == ""                             6       6
343 STR string compare                           10      10
344 STR string compare ""                         8       8
345 STR string compare long                     213     213
346 STR string compare mixed long               490     484
347 STR string compare uni long                 215     212
348 STR string equal ""                           7       9
349 STR/LIST length, obj shimmer               1093    1093
350 SWITCH 1st true                              14      15
351 SWITCH 2nd true                              16      14
352 SWITCH 9th true                              17      18
353 SWITCH default true                          18      17
354 TRACE all set (rwu)                          15      15
355 TRACE no trace set                           13      13
356 TRACE read                                   15      15
357 TRACE unset                                  13      13
358 TRACE write                                  15      15
359 UNSET catch var !exist                       30      30
360 UNSET catch var exists                        6       5
361 UNSET info check var !exist                   4       4
362 UNSET info check var exists                   8       8
363 UNSET nocomplain var !exist                   4       4
364 UNSET nocomplain var exists                   6       6
365 UNSET var exists                              6       6
366 VAR 'array set' of 100 elems                144     143
367 VAR 100 'set's in array                      77      77
368 VAR access global                            14      14
369 VAR access local proc arg                     6       6
370 VAR access locally set                        4       4
371 VAR access upvar                             17      17
372 VAR set array element                         8       8
373 VAR set scalar                                2       2
374 WORDCOUNT wc1                              2608    2630
375 WORDCOUNT wc2                               669     665
376 WORDCOUNT wc3                               606     605
376 BENCHMARKS                              1:8.4a4 2:8.4a4
FINISHED 2001-09-07 10:19:36