Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 19:28:07 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Rob <rob@pythonemproject.com>, "freebsd-chat@FreeBSD.ORG" <freebsd-chat@FreeBSD.ORG>
Subject:   Re: Why is Python slower on FreeBSD than Windows?
Message-ID:  <3C6DD1C7.4F3DEE06@mindspring.com>
References:  <3C6D22C2.268E6915@pythonemproject.com> <xzpheoilqr1.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav wrote:
> Rob <rob@pythonemproject.com> writes:
> > I've been doing some prototyping of some number crunching programs on
> > Python, and I found that Python is consistently slower on my laptop on
> > FreeBSD than when I boot into Windows.  For example, one program takes
> > 800sec to run on FreeBSD and 300sec to run when I boot into Win2k.  I am
> > wondering if I should try setting -03 in make.conf and remake Python and
> > Numpy.  Right now I have just -O.
> 
> My bet: crappy compiler.  And building with -O3 will probably result
> in incorrect code, BTW.

Check the clock rate that FreeBSD displays.  In some
power saving modes, which are normally only reset by
interaction with Windows ACPI after the boot is complete,
so are not reset by FreeBSD, the CPU clock rate is
reduced to reduce power consumption.  It could be that
FreeBSD is, in fact, running the processor at a lower
clock rate than Windows.

-- Terry

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C6DD1C7.4F3DEE06>