From owner-freebsd-bugs Thu Jul 18 0: 0:27 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7B9B37B400 for ; Thu, 18 Jul 2002 00:00:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0827943E3B for ; Thu, 18 Jul 2002 00:00:20 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6I70JJU087605 for ; Thu, 18 Jul 2002 00:00:19 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6I70JaR087602; Thu, 18 Jul 2002 00:00:19 -0700 (PDT) Date: Thu, 18 Jul 2002 00:00:19 -0700 (PDT) Message-Id: <200207180700.g6I70JaR087602@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Bruce Evans Subject: Re: kern/40714: Functions with more than 1 arguments Gets More Executing Time. Reply-To: Bruce Evans Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR kern/40714; it has been noted by GNATS. From: Bruce Evans To: Si-Liang Chang 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