*BSD News Article 87906


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!news.maxwell.syr.edu!EU.net!Ireland.EU.net!maths.tcd.ie!not-for-mail
From: dwmalone@maths.tcd.ie (David Malone)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: FreeBSD slower than Linux ?
Date: 31 Jan 1997 01:17:14 -0000
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Lines: 16
Sender: mathnews@synge.maths.tcd.ie
Message-ID: <5crh6q$44j@synge.maths.tcd.ie>
References: <dkleinh.854654600@isotope.ps.uci.edu>
NNTP-Posting-Host: synge.maths.tcd.ie
Keywords: FreeBSD, Linux, CPU time
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34776

dkleinh@isotope.ps.uci.edu (Dirk Kleinhesselink) writes:

>I'm compiling my program with the stock g77 that comes with each OS.  I know
>Linux is using gcc-2.7.2 and FreeBSD is using gcc-2.6.3 and so I went back
>to my old Slackware 2.3, which has gcc-2.6.3 and this was still twice as
>fast.  Anyone have any ideas why ?

One thing that it might be is that the FreeBSD maths libraries don't
have FPU code in them the way they are distributed, if you recompile
them with HAVE_FPU=yes in /etc/make.conf this might make quite a
difference for some things.

You should see if you can profile the code and find out where the
differences are.

	David.