Posted to tcl by lm at Tue Oct 30 22:34:36 GMT 2007view raw
- Test Perl Python Ruby Tcl L
- cat 0.9 0.8 1.9 2.8 2.9
- grep 1.0 2.0 2.2 4.8 5.2
- hash 1.4 1.0 3.7 3.3 (broken)
- 9.3M 8.1M 20.3M 12.3M (data size was 3.3M)
- loop 0.3 0.3 0.57 0.13 .18
- proc 0.7 0.4 1.1 0.8 0.8
- sort 4.9 4.6 11.2 11.7 10.0
- 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