J
Jon Reed
Is perl 5.8 slower than perl 5.005_03 ?
We rebuilt one of three webserver machines with solaris 5.8 and added
perl 5.8 using
./Configure -des -Dusethreads -Dcc='gcc -B/usr/ccs/bin/'
(The old configuration was Solaris 5.6 with perl 5.005_03)
I noticed that our website seemed slower with this new configuration.
Using Apache Benchmark confirmed that it was slower. Next step was to
eliminate the webserver, so executing a simple perl script 1000 times
direct from the command line took about 30 seconds with perl 5.8.
Then I copied the perl 5.005_03 binary over from a very similar
machine (that has not been rebuilt yet) and it takes 16 seconds for
the same test!!
This is consistent with the behavior I am seeing where anything using
perl on the new machine is slower.
Then I installed perl 5.8 as a package from sunfreeware and the same
test takes about 30 seconds. Consistent with my other install of 5.8.
Also,
The 5.005_03 is --> version 5.005_03 built for sun4-solaris
The 5.8 package is --> v5.8.0 built for sun4-solaris
The 5.8 that I compiled is --> v5.8.0 built for
sun4-solaris-thread-multi
Given that both 5.8 installs were significantly longer in my tests, I
don't think the multi-thread makes a difference at this point.
Is perl 5.8 slower than 5.005_03? Does anyone have any tips for
enhancing the performance of perl? Is there a switch or something in
the config I was supposed to set?
Any other ideas why I am seeing such a degradation in performance of
perl with this new version?
Thanks in advance.
Jon Reed
We rebuilt one of three webserver machines with solaris 5.8 and added
perl 5.8 using
./Configure -des -Dusethreads -Dcc='gcc -B/usr/ccs/bin/'
(The old configuration was Solaris 5.6 with perl 5.005_03)
I noticed that our website seemed slower with this new configuration.
Using Apache Benchmark confirmed that it was slower. Next step was to
eliminate the webserver, so executing a simple perl script 1000 times
direct from the command line took about 30 seconds with perl 5.8.
Then I copied the perl 5.005_03 binary over from a very similar
machine (that has not been rebuilt yet) and it takes 16 seconds for
the same test!!
This is consistent with the behavior I am seeing where anything using
perl on the new machine is slower.
Then I installed perl 5.8 as a package from sunfreeware and the same
test takes about 30 seconds. Consistent with my other install of 5.8.
Also,
The 5.005_03 is --> version 5.005_03 built for sun4-solaris
The 5.8 package is --> v5.8.0 built for sun4-solaris
The 5.8 that I compiled is --> v5.8.0 built for
sun4-solaris-thread-multi
Given that both 5.8 installs were significantly longer in my tests, I
don't think the multi-thread makes a difference at this point.
Is perl 5.8 slower than 5.005_03? Does anyone have any tips for
enhancing the performance of perl? Is there a switch or something in
the config I was supposed to set?
Any other ideas why I am seeing such a degradation in performance of
perl with this new version?
Thanks in advance.
Jon Reed