*BSD News Article 87359


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news.bbnplanet.com!cpk-news-hub1.bbnplanet.com!worldnet.att.net!arclight.uoregon.edu!hammer.uoregon.edu!csulb.edu!drivel.ics.uci.edu!news.service.uci.edu!isotope.ps.uci.edu!dkleinh
From: dkleinh@isotope.ps.uci.edu (Dirk Kleinhesselink)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: FreeBSD slower than Linux ?
Date: 30 Jan 97 20:03:20 GMT
Organization: University of California, Irvine
Lines: 11
Message-ID: <dkleinh.854654600@isotope.ps.uci.edu>
NNTP-Posting-Host: isotope.ps.uci.edu
Summary: FreeBSD 2.1.5 uses 2 to 2.5x more CPU time than Linux - why ?
Keywords: FreeBSD, Linux, CPU time
X-Newsreader: NN version 6.5.0 #6 (NOV)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34423

I have been benchmarking a program on various machines and discovered that
the program -- fortran program -- runs 2 to 2.5 times faster on Linux
(Slackware 2.3 - Slackware 96) than on FreeBSD 2.1.5.  I have both Linux
and FreeBSD on my Pentium 100 Mhz, 48MB RAM and was pretty surprised.
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 ?

Dirk
dkleinh@isotope.ps.uci.edu