home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8527 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.1 KB  |  47 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!alchemy!ruunfs!hooft
  3. From: hooft@fys.ruu.nl (Rob Hooft)
  4. Subject: Jumptable Performance (Was: Re: shared libs - can everyone be happy with this?)
  5. Message-ID: <1992Aug18.080437.3944@fys.ruu.nl>
  6. Organization: Physics Department, University of Utrecht,  The Netherlands
  7. References: <1992Aug17.144719.1961@crd.ge.com> <1992Aug17.151311.29507@ods.com> <NOP.92Aug17135014@theory.Mankato.MSUS.EDU>
  8. Date: Tue, 18 Aug 1992 08:04:37 GMT
  9. Lines: 36
  10.  
  11. In <NOP.92Aug17135014@theory.Mankato.MSUS.EDU> nop@theory.Mankato.MSUS.EDU (Jay A. Carlson) writes:
  12.  
  13. >I'm not sure that all this trouble is worth it.  Does anyone have any
  14. >hard data on the performance loss of jump tables?
  15.  
  16. Well, I think the only way to correctly test thi is to run the BYTE
  17. bench again. Especially the 'concurrent shell script' part. I didn't
  18. do this yet, but I had a very strange experience with the jumptables
  19. yesterday, and it is reproducible (so far).
  20.  
  21. I compiled the 'flops.c' V1.2 program thas has been posted to
  22. comp.benchmarks last february. This is a program, as the name implies,
  23. that tests the FPU and certainly not the library. On my 486/33 results were:
  24.  
  25.    gcc -O6 -N -s -o flops flops.c        ===> 1.65 Mflops
  26.  
  27.    gcc -O6 -N -s -o flops flops.c -jump  ===> 1.70 Mflops
  28.  
  29. (Note that I didn't try to -m486 the thing... yet. And: yes: I know that -O6 is 
  30. not better than -O2)
  31.  
  32. I didn't believe this, so I repeated it many times. Is there any one
  33. who has an explanation for the fact that the '-jump'ed executable is
  34. 3% faster? Could this be caused by a difference in the crt0.o?
  35.  
  36. For the people that are interested in performance, some more results:
  37.  
  38.    gcc -O6 -N -s -o flops flops.c -jump -fomit-frame-pointer -funroll-all-loops
  39.                                          ===> 1.80 Mflops
  40.  
  41.    gcc -O6 -N -s -o flops flops.c -jump -msoft-float
  42.                                          ===> 0.60 Mflops
  43. -- 
  44. Rob Hooft, Bijvoet Center for Biomolecular Research, 
  45. Chemistry department University of Utrecht, the Netherlands
  46. hooft@hutruu54.bitnet hooft@chem.ruu.nl hooft@fys.ruu.nl hooft@cc.ruu.nl
  47.