From: William James Date: 2006-07-29T03:00:05+09:00 Subject: Re: For performance, write it in C - Part 2, comparing C, Ruby and Java Peter Hickman wrote: > This is the follow up to my "Write it in C post" and is intended to > report the timings for the Java implementation that I said I would write > for Charles O Nutter and the Ruby version by Simon Kroeger. First let us > deal with the Ruby version. > > The program differs from the Perl and C versions in that the various > values it requires are not precomputed. Simon's program is completely > self contained. > > [Latin]$ time ruby latin.rb 5 > r5 > > real 0m35.793s > user 0m32.081s > sys 0m0.843s In another thread Simon Kroger wrote: > real 0m4.703s > user 0m0.015s > sys 0m0.000s > > (this is a 2.13GHz PentiumM, 1GB RAM, forget the user and sys timings, but > 'real' is for real, this is WinXP) Why is it so much slower on Peter Hickman's machine?