home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / forth / 3641 < prev    next >
Encoding:
Text File  |  1992-12-17  |  2.0 KB  |  50 lines

  1. Newsgroups: comp.lang.forth
  2. Path: sparky!uunet!email!mips.complang.tuwien.ac.at!anton
  3. From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
  4. Subject: Threading speed
  5. Message-ID: <1992Dec17.142351.8752@email.tuwien.ac.at>
  6. Sender: news@email.tuwien.ac.at
  7. Nntp-Posting-Host: mips.complang.tuwien.ac.at
  8. Organization: Technische Universitaet Wien
  9. Date: Thu, 17 Dec 1992 14:23:51 GMT
  10. Lines: 38
  11.  
  12. Some new results on the threading speeds of various processors:
  13.  
  14.                     gcc    sub-
  15. Machine            Processor    version    routine    direct    indir.    switch
  16. DECStation 5000/125    R3000 25MHz    2.2.2    19.8s    17.7s    25.8s    46.5s
  17. HP/Apollo 425        68040 25MHz    2.2.2    38.3s+    22.3s    30.1s    63.5s
  18. HP/Apollo 720        HP-PA 50MHz    2.3.2    15.54s    10.99s    15.05s    19.74s
  19. SPARCStation 1        Cypress 20MHz    2.2.2    31.2s    33.2s    47.9s    73.6s
  20. 486            486DX2 50Mhz    2.2.2d    20.3s*    14.4s    14.6s    21.5s
  21.  
  22. +manually unoptimized to become realistic
  23. *with -fomit-frame-pointer; otherwise: 34.6s
  24.  
  25. The benchmark consists of a loop that contains nine NEXTs and a
  26. looping instruction (a termination test and a jump back for subroutine
  27. threaded code), i.e. it primarily measures NEXT speed. This loop is
  28. executed 10,000,000 times (resulting in 100,000,000 NEXTs and a bit of
  29. overhead). It fits completely into the caches of the measured
  30. machines.
  31.  
  32. I posted the code a few months ago. If you are interested, I will mail
  33. it to you.
  34.  
  35. The numbers are user times measured with the "time" command. The
  36. assembly code generated by the GNU C Compiler was inspected and found
  37. realistic, with one exception: I had to unoptimize the assembly code
  38. for subroutine threading on the 68040, since the compiler allocated
  39. the address of the function "next" to a register.
  40.  
  41. Thanks to Bernd Paysan for the values on the SPARCStation and the HP 700.
  42. Bernd does not know whether the SPARCStation is a 1 or 2; I guess from
  43. its slowness that it's a SPARCStation 1. Thanks to Franz Puntigam for
  44. the values on the 486.
  45.  
  46. - anton
  47. -- 
  48. M. Anton Ertl                    Some things have to be seen to be believed
  49. anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
  50.