473,765 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python speed on Solaris 10

I have found that the sunfreeware.com build of Python 2.4.3 for Solaris
10 is faster than one I can build myself, on the same system.
sunfreeware.com doesn't bother showing the options they used to
configure and build the software, so does anyone know what the optimal
build options are for Solaris 10 (x86)?

Here are some pybench/pystone results, and I include the same comparison
of Python2.4.3 running on CentOS 4.3 on the same hardware (which is what
prompted me to find a faster Python build in the first place).

Python 2.4.3:
System pybench Pystone (pystones/s)
--------------------------------------------------------
Sol10 my build 3836.00 ms 37313.4
Sol10 sunfreeware 3235.00 ms 43859.6
CentOS 3569.00 ms 44247.8
My build:
Python 2.4.3 (#1, Oct 15 2006, 16:00:33)
[GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpat h)] on sunos5

sunfreeware.com build:
Python 2.4.3 (#1, Jul 31 2006, 05:14:51)
[GCC 3.4.6] on sunos5

My build on CentOS 4.3:
Python 2.4.3 (#1, Jul 19 2006, 17:52:43)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
is the difference purely gcc minor version?
--
http://chrismiles.info/

Nov 14 '06 #1
2 1502

Chris Miles wrote:
I have found that the sunfreeware.com build of Python 2.4.3 for Solaris
10 is faster than one I can build myself, on the same system.
sunfreeware.com doesn't bother showing the options they used to
configure and build the software, so does anyone know what the optimal
build options are for Solaris 10 (x86)?

Here are some pybench/pystone results, and I include the same comparison
of Python2.4.3 running on CentOS 4.3 on the same hardware (which is what
prompted me to find a faster Python build in the first place).

Python 2.4.3:
System pybench Pystone (pystones/s)
--------------------------------------------------------
Sol10 my build 3836.00 ms 37313.4
Sol10 sunfreeware 3235.00 ms 43859.6
CentOS 3569.00 ms 44247.8
My build:
Python 2.4.3 (#1, Oct 15 2006, 16:00:33)
[GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpat h)] on sunos5

sunfreeware.com build:
Python 2.4.3 (#1, Jul 31 2006, 05:14:51)
[GCC 3.4.6] on sunos5

My build on CentOS 4.3:
Python 2.4.3 (#1, Jul 19 2006, 17:52:43)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)] on linux2
is the difference purely gcc minor version?
I noticed that speed difference, too. After running ./configure, I
edited the resulting Makefile to pass "-march=athlon-mp" to the C
compiler. ./configure seems to ignore CFLAGS, for example, so I just
edited Makefile to suit my environment. You should set the values
appropriate for you system, of course.

I've also compiled Python using the Sun Studio compiler. Some tests
were faster, some tests were slower.

casevh
--
http://chrismiles.info/
Nov 15 '06 #2
Since my post I have compiled Python 2.4.3 with Sun Studio 11 with
"-fast" option (on Solaris 10) which has produced the fastest version of
Python I've been able to test on this hardware, including the CentOS
Linux version (which I'm pleased about).

I haven't looked into more optimal gcc build options yet, so that may
produce a faster build, but I am probably satisfied with what Sun Studio
has given me for now.

Cheers,
Chris

ca****@comcast. net wrote:
I noticed that speed difference, too. After running ./configure, I
edited the resulting Makefile to pass "-march=athlon-mp" to the C
compiler. ./configure seems to ignore CFLAGS, for example, so I just
edited Makefile to suit my environment. You should set the values
appropriate for you system, of course.

I've also compiled Python using the Sun Studio compiler. Some tests
were faster, some tests were slower.
--
http://chrismiles.info/

Nov 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
3603
by: Bart Nessux | last post by:
Just fooling around this weekend. Wrote and timed programs in C, Perl and Python. Each Program counts to 1,000,000 and prints each number to the console as it counts. I was a bit surprised. I'm not an expert C or Perl programming expery, I'm most familiar with Python, but can use the others as well. Here are my results: C = 23 seconds Python = 26.5 seconds
0
999
by: mwidj | last post by:
I'm building python extension for some solaris specific functions. My setup.py looks like this: setup.py: from distutils.core import setup, Extension sol_ex = Extension('sun.solaris', )
0
337
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 375 open ( -3) / 3264 closed (+26) / 3639 total (+23) Bugs : 910 open ( +3) / 5851 closed (+20) / 6761 total (+23) RFE : 217 open ( -1) / 220 closed ( +3) / 437 total ( +2) New / Reopened Patches ______________________
4
6481
by: Martijn de Munnik | last post by:
Hi, I want to compile python on my solaris 10 system (amd 64 bit). I did the following: ../configure --prefix=/opt/64/python make which resulted in this error:
0
1808
by: mg | last post by:
When make gets to the _ctypes section, I am getting the following in my output: building '_ctypes' extension creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi creating build/temp.solaris-2.10-i86pc-2.5/home/ecuser/Python-2.5.1/ Modules/_ctypes/libffi/src
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5421
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.