Posted to tcl by lm at Tue Oct 30 22:34:36 GMT 2007view raw

  1. Test Perl Python Ruby Tcl L
  2. cat 0.9 0.8 1.9 2.8 2.9
  3. grep 1.0 2.0 2.2 4.8 5.2
  4. hash 1.4 1.0 3.7 3.3 (broken)
  5. 9.3M 8.1M 20.3M 12.3M (data size was 3.3M)
  6. loop 0.3 0.3 0.57 0.13 .18
  7. proc 0.7 0.4 1.1 0.8 0.8
  8. sort 4.9 4.6 11.2 11.7 10.0
  9.  
  10. Test descriptions:
  11.  
  12. cat copy stdin to stdout
  13. grep match a regular expression against stdin, print each match
  14. hash use each line of stdin as a hash key, value is 1.
  15. the size is the size of the VM data section and indicates how much
  16. space the hash uses.
  17. loop measure the cost of a loop
  18. proc measure procedure call cost
  19. sort sorts stdin to stdout
  20.  
  21. This file and tests are at http://www.bitmover.com/lm/langbench.shar
  22.