From: Isaac Gouy Date: 2005-06-28T14:20:40+09:00 Subject: Re: I saw the beauty of Ruby Re: 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds Brad Wilson wrote: -snip- > I ran 5 million. Non-generic .NET is ~ 50x faster than Ruby (probably > was before too, but we couldn't tell because of the smallish sample > size). For simple Ruby and C# Sieve implementations, on The Great Computer Language Shootout, Mono C# was ~48x faster than Ruby http://shootout.alioth.debian.org/great/benchmark.php?test=all&lang=ruby&lang2=csharp&sort=fullcpu#ratio http://shootout.alioth.debian.org/great/benchmark.php?test=nsieve&lang=all&sort=fullcpu#bench > Generic .NET ran ~ 1.2x faster than non-generic .NET. All > things considered, that's a decent showing for interpreted/latent > typed vs. JITted/strong typed. > > C:\> ruby primes.rb > 348513 > time taken 197.84 seconds > > C:\> primes.exe > 348513 > Time taken: 00:00:04.0000512 > > C:\> primes-generic.exe > 348513 > Time taken: 00:00:03.3125424