Subject: Strange libc shared vs. unshared performance
To: None <port-sparc@netbsd.org>
From: Vareck Bostrom <bostrov@lava.cs.orst.edu>
List: port-sparc
Date: 11/11/1994 01:32:24
Figure this one out guys: 

(in makefile):
$(DEFINES) -O4 -funroll-loops -fomit-frame-pointer -static

% dhry21
Please give the number of runs through the benchmark: 500000

...blah...blah...
Microseconds for one run through Dhrystone:    40.0
Dhrystones per Second:                         25020.2
VAX MIPS rating =     14.240



Now, try this:
(in makefile):
FLAGS = $(DEFINES) -O4 -funroll-loops -fomit-frame-pointer        
(note lack of -static) 

% dhry21
Please give the number of runs through the benchmark: 500000

...blah...blah...
Microseconds for one run through Dhrystone:   113.6
Dhrystones per Second:                          8801.3
VAX MIPS rating =      5.009



Also, my machine (an IPC) and a machine upstairs (a SS 2) both have 
pathetically slow c compilers - an HP 425 seems to build it's tree 
roughly 5 or 10 times faster than the SS 2. What's the story with the c
compiler? Is there something wrong with the libc shared? Any ideas,
guys?