Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: david@lama.stanford.edu (Peter R David)
Subject: Differences between shared and static compilations on UDB/Multia
Date: 1996/09/19	[thread overview]
Message-ID: <51sb1p$290@nntp.Stanford.EDU> (raw)



	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



                 reply	other threads:[~1996-09-19  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox