home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / scheme / 2732 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  874 b 

  1. Path: sparky!uunet!mitech!gjc
  2. From: gjc@mitech.com (George J. Carrette)
  3. Newsgroups: comp.lang.scheme
  4. Subject: Are interpreters now as fast as compiled code used to be?
  5. Message-ID: <4051@mitech.com>
  6. Date: 14 Dec 92 12:14:23 GMT
  7. Organization: Mitech Corporation, Concord MA
  8. Lines: 19
  9.  
  10. Informal survey, how fast is your Scheme interpreter?
  11.  
  12. The question is: With the latest wave of stock hardware,
  13.                  have simple interpreters gotten as fast as
  14.                  compilers were only a couple years ago?
  15.  
  16.    (define (standard-fib x)
  17.      (if (< x 2)
  18.          x
  19.          (+ (standard-fib (- x 1))
  20.             (standard-fib (- x 2)))))
  21.  
  22. (standard-fib 20) => 6765 ; in how many seconds?
  23.  
  24. In SIOD 2.9 (this is a s-exp interpreter using lists for environment rep)
  25. we get a result in 0.42 seconds on the low-end VMS Alpha machine.
  26. (1.3 seconds on Solbourne 5E/900)
  27.  
  28. -gjc
  29.