MudBytes
» MUDBytes Community » Language Discussions » Ruby » Ruby Implementation Benchmarks
Pages: << prev 1 next >>
Ruby Implementation Benchmarks
Runter
Wizard






Group: Members
Posts: 1,850
Joined: Jun 1, 2006

Go to the bottom of the page Go to the top of the page
#1 id:43213 Posted Mar 10, 2010, 7:11 am

I couldn't find the thread where the discussion took place but there was some questions regarding the differences in ruby 1.9 and 1.8.  Here's some benchmarks that include various ruby implementations.  It was ran under ubuntu 8.10 and 1 test under windows ultimate 64.

http://antoniocangiano.com/images/shootout3/main_time.png

It's a little dated but it should still be relevant per the versions in question.

I thought it was particularly interesting that compiled from source was significantly faster than the ubuntu distributed package.
.........................
CoralMud project

For once you have tasted flight Ruby you will walk the earth with your eyes turned skywards,
for there you have been and there you will long to return. --
                                              Leonardo Da Vinci Yukihiro Matsumoto

Last edited Mar 10, 2010, 7:13 am by Runter
Tyche
Wizard






Group: Members
Posts: 1,343
Joined: May 23, 2006

Go to the bottom of the page Go to the top of the page
#2 id:43215 Posted Mar 10, 2010, 7:45 am

Is that Vista benchmark using MinGW?
.........................
http://jlsysinc.gotdns.com/ladybug_laugh2.jpghttp://jlsysinc.gotdns.com/teensymud_250x80.pnghttp://jlsysinc.gotdns.com/palin_calendar.jpg
For now we see through a glass, darkly; but then face to face: now I know in part; but then shall I know even as also I am known.


Runter
Wizard






Group: Members
Posts: 1,850
Joined: Jun 1, 2006

Go to the bottom of the page Go to the top of the page
#3 id:43217 Posted Mar 10, 2010, 8:19 am

No, I don't believe so.
.........................
CoralMud project

For once you have tasted flight Ruby you will walk the earth with your eyes turned skywards,
for there you have been and there you will long to return. --
                                              Leonardo Da Vinci Yukihiro Matsumoto

David Haley
Wizard






Group: Members
Posts: 6,874
Joined: Jun 30, 2007

Go to the bottom of the page Go to the top of the page
#4 id:43237 Posted Mar 10, 2010, 12:25 pm

How interesting that the Java implementation (I'm assuming that JRuby is Java Ruby) is faster than everything but one. I wonder if this is because the Java VM's JIT is superior to whatever people are doing in their other implementations, or if the Java implementation has better algorithms etc.

And yes, it is also interesting that Ruby compiled from source is twice as fast as the distributed version. I wonder why that is. Could it be things like optimization?
.........................
-- d.c.h --
BabbleMUD Project (custom codebase)
Legends of the Darkstone (head coder)
http://david.the-haleys.org
.........................

Runter
Wizard






Group: Members
Posts: 1,850
Joined: Jun 1, 2006

Go to the bottom of the page Go to the top of the page
#5 id:43286 Posted Mar 10, 2010, 6:11 pm


David Haley said:
How interesting that the Java implementation (I'm assuming that JRuby is Java Ruby) is faster than everything but one. I wonder if this is because the Java VM's JIT is superior to whatever people are doing in their other implementations, or if the Java implementation has better algorithms etc.

And yes, it is also interesting that Ruby compiled from source is twice as fast as the distributed version. I wonder why that is. Could it be things like optimization?


Yeah, those are what I thought.

I think JRuby is particularly interesting because of the full access through ruby to the Java library.  It's also only 1 of 3 implementations to fully support Rails.  (1.8, 1.9, and JRuby.)
.........................
CoralMud project

For once you have tasted flight Ruby you will walk the earth with your eyes turned skywards,
for there you have been and there you will long to return. --
                                              Leonardo Da Vinci Yukihiro Matsumoto

Tyche
Wizard






Group: Members
Posts: 1,343
Joined: May 23, 2006

Go to the bottom of the page Go to the top of the page
#6 id:43288 Posted Mar 10, 2010, 6:29 pm

Runter said:
No, I don't believe so.


If it's the one-click install then it's using either the free VC6 or MinGW gcc 3.x which are significantly slower than VC8.
Your ubuntu distro versus source is likely related to the Ruby packaged using gcc 3.x, and gcc 4.x being the default Ubuntu compiler??
Gcc 4.x optimization is catching up to MS and Intel compilers.

Without knowing whether these were running on the same hardware, nor which version of compiler, JVM, I can only say there is not enough useful information here to say much of anything.
.........................
http://jlsysinc.gotdns.com/ladybug_laugh2.jpghttp://jlsysinc.gotdns.com/teensymud_250x80.pnghttp://jlsysinc.gotdns.com/palin_calendar.jpg
For now we see through a glass, darkly; but then face to face: now I know in part; but then shall I know even as also I am known.


Runter
Wizard






Group: Members
Posts: 1,850
Joined: Jun 1, 2006

Go to the bottom of the page Go to the top of the page
#7 id:43289 Posted Mar 10, 2010, 6:47 pm

They were running on the same hardware.  It was the one click installer for vista.  It was compiled with ggc 4 in ubuntu. 

Intel Core 2 Quad Q6600 (2.4 GHz) CPU and 8 GB of RAM

Ruby Benchmark Suite was used.

Best result for each of 5 iterations was used and does not include startup times to parse and compile classes and methods for the first time.
.........................
CoralMud project

For once you have tasted flight Ruby you will walk the earth with your eyes turned skywards,
for there you have been and there you will long to return. --
                                              Leonardo Da Vinci Yukihiro Matsumoto

Pages:<< prev 1 next >>
Tags
[+]

Valid XHTML 1.1! Valid CSS!