[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

How about the execution efficiency in Ruby 1.9?

Phper

5/1/2008 3:11:00 AM

Has It been greatly improved?
11 Answers

ara.t.howard

5/1/2008 4:12:00 AM

0


On Apr 30, 2008, at 9:15 PM, Erwin Moller wrote:
> Has It been greatly improved?


yes.

a @ http://codeforp...
--
we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama




ThoML

5/1/2008 6:42:00 AM

0

On May 1, 5:10 am, Erwin Moller <hi.steven...@gmail.com> wrote:
> Has It been greatly improved?

The shootout gives a hint:

http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&am...

How these charts relate to real-world problems ... oh well, but it's
fun to play with.

Simon Krahnke

5/1/2008 8:40:00 AM

0

* Erwin Moller <hi.steven.tu@gmail.com> (05:10) schrieb:

> Has It been greatly improved?

Yes!

I've foolishly done a small raytracer in pure ruby, and here are some
older timing results:

1.11 scene5 hdr
real 240m0.358s
user 229m33.500s
sys 5m16.590s

1.12 scene5 hdr (ruby1.9)
real 159m57.246s
user 156m15.050s
sys 0m30.360s

(Yeah, it's version 1.11 vs version 1.12, but 1.12 just fixes bugs.)

mfg, simon .... l

Eleanor McHugh

5/1/2008 10:58:00 AM

0

On 1 May 2008, at 07:45, ThoML wrote:
> On May 1, 5:10 am, Erwin Moller <hi.steven...@gmail.com> wrote:
>> Has It been greatly improved?
>
> The shootout gives a hint:
>
> http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test=all&am...
>
> How these charts relate to real-world problems ... oh well, but it's
> fun to play with.

It's interesting to see that Ruby 1.9 is now faster than Icon, which
is my other fave language (and who's VM I'm far too familiar with).


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-...
----
raise ArgumentError unless @reality.responds_to? :reason



James Gray

5/1/2008 2:00:00 PM

0

On May 1, 2008, at 4:05 AM, Simon Krahnke wrote:

> I've foolishly done a small raytracer in pure ruby=85

I've always wanted to try that.

MJD has a neat little raytracer in Perl. I think it's 400 lines, or so.

Is your code publicly available?

James Edward Gray II=

Simon Krahnke

5/1/2008 2:52:00 PM

0

* James Gray <james@grayproductions.net> (16:00) schrieb:

> On May 1, 2008, at 4:05 AM, Simon Krahnke wrote:
>
>> I've foolishly done a small raytracer in pure ruby?
>
> I've always wanted to try that.
>
> MJD has a neat little raytracer in Perl. I think it's 400 lines, or so.

Well, rayt (that's its short name) is quite basic and limited, there are
only two different object types: planes (with no borders) and spheres. I
only ever tried grayscale images and it's just plain raytracing with
reflection and transparency.

I consider it quite finished, because pure raytracing with its shadow
rays it's just too bad at distributing light, and can always learn to
use povray. I might try to implement refraction some day though.

> Is your code publicly available?

No, but I could zip it up and mail it to you if you want.

mfg, simon .... my address works

Isaac Gouy

5/1/2008 4:57:00 PM

0



On May 1, 3:58 am, Eleanor McHugh <elea...@games-with-brains.com>
wrote:
> On 1 May 2008, at 07:45, ThoML wrote:
>
> > On May 1, 5:10 am, Erwin Moller <hi.steven...@gmail.com> wrote:
> >> Has It been greatly improved?
>
> > Theshootoutgives a hint:
>
> >http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test......
>
> > How these charts relate to real-world problems ... oh well, but it's
> > fun to play with.
>
> It's interesting to see that Ruby 1.9 is now faster than Icon, which
> is my other fave language (and who's VM I'm far too familiar with).


Much the same rather than faster (and there are many missing Icon
programs)

http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test...ang=icon&lang2=yarv

Isaac Gouy

5/1/2008 5:00:00 PM

0



On Apr 30, 11:45 pm, ThoML <micat...@gmail.com> wrote:
> On May 1, 5:10 am, Erwin Moller <hi.steven...@gmail.com> wrote:
>
> > Has It been greatly improved?
>
> Theshootoutgives a hint:
>
> http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test......
>
> How these charts relate to real-world problems ... oh well, but it's
> fun to play with.


Here's a direct comparison -

http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test...ang=yarv&lang2=ruby


(Note that some of the Ruby 1.8.6 programs show Error when run with
Ruby 1.9.0)

Eleanor McHugh

5/1/2008 6:33:00 PM

0

On 1 May 2008, at 17:56, Isaac Gouy wrote:
> On May 1, 3:58 am, Eleanor McHugh <elea...@games-with-brains.com>
> wrote:
>> On 1 May 2008, at 07:45, ThoML wrote:
>>
>>> On May 1, 5:10 am, Erwin Moller <hi.steven...@gmail.com> wrote:
>>>> Has It been greatly improved?
>>
>>> Theshootoutgives a hint:
>>
>>> http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test...
>>> ...
>>
>>> How these charts relate to real-world problems ... oh well, but it's
>>> fun to play with.
>>
>> It's interesting to see that Ruby 1.9 is now faster than Icon, which
>> is my other fave language (and who's VM I'm far too familiar with).
>
>
> Much the same rather than faster (and there are many missing Icon
> programs)
>
> http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test...ang=icon&lang2=yarv

Well there's lots of room for improvement in the Icon VM, what with
the current design being fifteen years old and written in its own god-
awful macro language that adds additional overhead. On the other hand,
I did significant physical simulations using it on an i386 for my
degree dissertation and never found it particularly slow so if Ruby
1.9 is in the same ballpark now that's a good improvement.

As for the lack of Icon benchmarks, well judging from the activity on
the Unicon mailing list I'd be surprised if there's more than a few
hundred of us worldwide who ever use it. Makes Ruby look positively
mainstream ;)


Ellie

Eleanor McHugh
Games With Brains
http://slides.games-with-...
----
raise ArgumentError unless @reality.responds_to? :reason



M. Edward (Ed) Borasky

5/2/2008 2:45:00 AM

0

Eleanor McHugh wrote:
> On 1 May 2008, at 17:56, Isaac Gouy wrote:
>> On May 1, 3:58 am, Eleanor McHugh <elea...@games-with-brains.com>
>> wrote:
>>> On 1 May 2008, at 07:45, ThoML wrote:
>>>
>>>> On May 1, 5:10 am, Erwin Moller <hi.steven...@gmail.com> wrote:
>>>>> Has It been greatly improved?
>>>
>>>> Theshootoutgives a hint:
>>>
>>>> http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test......
>>>>
>>>
>>>> How these charts relate to real-world problems ... oh well, but it's
>>>> fun to play with.
>>>
>>> It's interesting to see that Ruby 1.9 is now faster than Icon, which
>>> is my other fave language (and who's VM I'm far too familiar with).
>>
>>
>> Much the same rather than faster (and there are many missing Icon
>> programs)
>>
>> http://shootout.alioth.debian.org/gp4sandbox/benchmark.php?test...ang=icon&lang2=yarv
>>
>
> Well there's lots of room for improvement in the Icon VM, what with the
> current design being fifteen years old and written in its own god-awful
> macro language that adds additional overhead. On the other hand, I did
> significant physical simulations using it on an i386 for my degree
> dissertation and never found it particularly slow so if Ruby 1.9 is in
> the same ballpark now that's a good improvement.
>
> As for the lack of Icon benchmarks, well judging from the activity on
> the Unicon mailing list I'd be surprised if there's more than a few
> hundred of us worldwide who ever use it. Makes Ruby look positively
> mainstream ;)

The main use of it that I'm aware of is in the build process for Norman
Ramsey's "noweb" literate programming tool. Ralph Griswold, the creator
of Icon (and SNOBOL!) passed away last year, and I don't know if anyone
has stepped into a maintainer role.