From owner-freebsd-chat Fri Feb 15 15: 1:11 2002 Delivered-To: freebsd-chat@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id A7B2E37B41E for ; Fri, 15 Feb 2002 15:00:30 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id g1FN0xX42428; Fri, 15 Feb 2002 15:00:59 -0800 (PST) Date: Fri, 15 Feb 2002 15:00:59 -0800 (PST) From: Doug White To: Rob Cc: "freebsd-chat@FreeBSD.ORG" Subject: Re: Why is Python slower on FreeBSD than Windows? In-Reply-To: <3C6D22C2.268E6915@pythonemproject.com> Message-ID: <20020215145841.O33755-100000@resnet.uoregon.edu> X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, 15 Feb 2002, Rob wrote: > 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. Have you truss/ktrace'd your script? It might be getting bogged on gettimeofday() or memory allocation or unblocked reads/writes. > ps. the program is available on my website below as somnec.py. Whee, translated Fortran (gag) ... this could be suffering from converted code that does Evil Things(tm) in Python that Windows non-optimizations actually seem to help. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message