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