Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jul 2002 00:00:19 -0700 (PDT)
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/40714: Functions with more than 1 arguments Gets More Executing Time.
Message-ID:  <200207180700.g6I70JaR087602@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/40714; it has been noted by GNATS.

From: Bruce Evans <bde@zeta.org.au>
To: Si-Liang Chang <slchang@csie.nctu.edu.tw>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/40714: Functions with more than 1 arguments Gets More
 Executing Time.
Date: Thu, 18 Jul 2002 16:37:04 +1000 (EST)

 On Wed, 17 Jul 2002, Si-Liang Chang wrote:
 
 > >Description:
 > When running my molecule dynamics simulation programs on FreeBSD, they are always about 33% slower than those (with the same conditions) run on a Linux box or Solaris. In order to simplify the problem, we run several testing programs. Finally, we conclude that, functions with more than 1 arguments spend much executing time.
 > >How-To-Repeat:
 > In Program 1, it spends about 7.534u on our PPro FreeBSD 4.6R mechine.
 > In Program 2, it spends about 2.904u on our PPro FreeBSD 4.6R mechine.
 >
 > In the meanwhile,
 > In Program 1, it spends about 2.56u on our PPro Solaris 8 mechine.
 > In Program 2, it spends about 2.66u on our PPro Solaris 8 mechine.
 
 I think this is actually a stack alignment problem (partly in FreeBSD,
 partly in gcc).  It is not present in -current.  Try using gcc-3.1 from
 ports for time-critical floating-point applications.
 
 Bruce
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207180700.g6I70JaR087602>