From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,68f1e5483b5b6762,start X-Google-Attributes: gidfee84,public X-Google-Thread: f678f,68f1e5483b5b6762,start X-Google-Attributes: gidf678f,public X-Google-Thread: 1164f8,68f1e5483b5b6762,start X-Google-Attributes: gid1164f8,public From: david@lama.stanford.edu (Peter R David) Subject: Differences between shared and static compilations on UDB/Multia Date: 1996/09/19 Message-ID: <51sb1p$290@nntp.Stanford.EDU>#1/1 X-Deja-AN: 184017467 organization: Stanford University keywords: C, FORTRAN, UDB, MULTIA, OSF/1, Digital Unix 3.2G, linux newsgroups: comp.sys.dec,comp.unix.osf.misc,comp.unix.osf.osf1 We noticed a large difference in performance between statically compiled and dynamically compiled executables on the UDB/Multias. Dynamically compiled code runs at one third the speed of the statically linked code. This is true for both FORTRAN and C. The code in the following test is the floating point intensive savage, a large do loop over a=tan(atan(exp(log(sqrt(a*a))))) For comparison, the same executable was run on an Alphastation 250 4/266 and on a UDB at 233 & 266MHz. The operating system was DU 3.2G or linux, with very similar results. Any ideas on why dynamically compiled code should so much slower? Any ideas on solutions? Thanks, Peter David DU 3.2G Timings; UDB @233 mHz Statically linked = 10.007u 0.039s 0:10.12 99.1% 0+0k 0+0io 0pf+0w Dynamically linked =20.810u 0.080s 0:21.36 97.7% 0+1k 0+0io 0pf+0w UDB @266 mHz Statically linked = 8.022u 0.040s 0:08.23 97.9% 0+0k 0+0io 0pf+0w Dynamically linked=21.034u 0.080s 0:21.81 96.7% 0+1k 86+0io 7pf+0w Alphastation 250 4/266 Statically linked = 8.336u 0.010s 0:15.73 53.0% 0+0k 18+0io 17pf+0w Dynamically linked= 6.598u 0.017s 0:12.11 54.5% 0+1k 7+0io 5pf+0w