Posted to tcl by mcvoy at Sat Oct 27 18:04:52 GMT 2007view raw
- Test Perl Python Tcl
- cat 0.9 0.8 2.8
- grep 1.0 2.0 4.8
- hash 1.4 1.0 3.3
- 9.3M 8.1M 12.3M (data size was 3.3M)
- loop 0.3 0.3 0.1
- proc 0.7 0.4 1.1
- sort 4.9 4.6 11.7
- Test descriptions:
- cat copy stdin to stdout
- grep match a regular expression against stdin, print each match
- hash use each line of stdin as a hash key, value is 1.
- the size is the size of the VM data section and indicates how much
- space the hash uses.
- loop measure the cost of a loop
- proc measure procedure call cost
- sort sorts stdin to stdout
- This file and tests are at http://www.bitmover.com/lm/langbench.shar