LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > Void cries or bashing time
User Name
Password

Notices

This blog is devoted to nonconstructive criticism, bashing, and other things that, being neither answers nor questions, are evidently unwelcome anywhere else in Linux Questions.
Rate this Entry

Linux. Expect the unexpected.

Posted 03-22-2009 at 05:39 PM by AGer

I ran a speed microtest from the Net. Since I cannot understand the results, I should blog and forget.

As of writing, the microtest is at http://blog.dhananjaynene.com/2008/0...-jruby-groovy/. It is like an object orientation overhead test. I ran only Python and Ruby. The numbers are microseconds per iteration. I ran each test 3 times and wrote down the extreme values so that it is possibly to roughly estimate the accuracy.

On Windows:
  • Python 2.6.0, built with VS 9: 192.03 - 193.44
  • Python 3.0.1, built with VS 9: 191.10 - 191.25
  • Ruby 1.8.7, stock version, VS 6 (?): 565.00 - 575.31
  • Ruby 1.9.1, stock version, VS 6 (almost sure): 322.18 - 325.78
  • Ruby 1.9.1, built with VS 9: 169.68 - 169.84

On Linux I first ran it on Slackware 12.2 and again on Slackware current. The "current" has new kernel and new gcc:
  • Ruby 1.8.7, stock 12.2: 388.38 - 440.78
  • Ruby 1.9.1, 12.2: 144.11 - 153.92
  • Ruby 1.9.1, current, same package as with 12.2: 142.81 - 144.31
  • Ruby 1.9.1, current, compiled anew (with new solibs, I should do that, right?): 153.21 - 154.96
  • Ruby 1.9.1, current, compiled anew with march=i686 instead of i486: 159.39 - 162.31
  • Python 2.5.2, stock 12.2: 303.62 - 309.92
  • Python 2.5.2, stock current: the same as above
  • Python 3.0.1, compiled on current: 290.00 - 297.89

I had to switch to Windows to double check that Python is that much faster there.

Do you see what I do: great progress made by Visual Studio, some progress made by the Linux kernel, performance degradation in new gcc, much faster (as promised) Ruby, and Python mysteriously optimized for Windows?
Posted in Uncategorized
Views 1219 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration