On Apr 6, 2006, at 10:00 PM, Bob Ippolito wrote:

> On Apr 6, 2006, at 9:44 PM, Alex Martelli wrote:
>
>> I'm wondering about comparative performance -- shouldn't a Macbook
>> Pro 2.0 GHz be VASTLY faster than a humble iBook G4 12" (1.33 GHz PPC
>> G4)?
>>
>> And yet, pybench 1.0 tells me: 7806 ms on the iBook, 7721 on the
>> Macbook; also, the iBook measures at 22026 pystones/sec, the Macbook
>> at 22624.  That's with 2.4.3 on both.  Am I doing something wrong,
>> are there problems with the recent 2.4.3 Universal release, or are
>> the two machines REALLY that close...?!
>
> Make sure that the universal build is actually running i386.  If you
> are running a python binary compiled PPC that happens to link to the
> universal framework, it's going to start up PPC under Rosetta.  I'm
> not going to have an Intel machine for probably another few weeks so
> I can't test these things.
>
> You should see *exactly* the following output with a correctly
> installed universal build (with of course a different platform  
> string):
>
> % lipo -info `which python`
> Architectures in the fat file: /Library/Frameworks/Python.framework/
> Versions/Current/bin/python are: ppc i386
>
> % lipo -info /Library/Frameworks/Python.framework/Python
> Architectures in the fat file: /Library/Frameworks/Python.framework/
> Python are: ppc i386
>
> % python -mplatform
> Darwin-8.6.0-Power_Macintosh-powerpc-32bit
>

Here's what my universal build says:

[sprout:2000]> lipo -info `which  
python`                                      ~
Architectures in the fat file: /usr/local/bin/python are: ppc i386
===============================================================
2006-04-06 22:06[sprout:2001]> lipo -info /Library/Frameworks/ 
Python.framework/Python         ~
Architectures in the fat file: /Library/Frameworks/Python.framework/ 
Python are: ppc i386
===============================================================
2006-04-06 22:06[sprout:2002]> python - 
mplatform                                              ~
Darwin-8.6.1-i386-32bit

The python that Shane suggested that we build said this:

[sprout:2004]> lipo -info python.exe                                ~/ 
tmp/py-24
Non-fat file: python.exe is architecture: i386
===============================================================

*** NOTE i didn't know what to put in here for the Framework line ***

2006-04-06 22:07[sprout:2005]> ./python.exe - 
mplatform                              ~/tmp/py-24
Darwin-8.6.1-i386-32bit

Ted
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to