From: "Ralph \"PJPizza\" Siegler" Date: 2005-06-22T05:11:54+09:00 Subject: Re: 1. Ruby result: 101 seconds , 2. Java result:9.8 seconds, 3. Perl result:62 seconds On Wed, Jun 22, 2005 at 04:55:58AM +0900, Michael Tan wrote: > Just new to Ruby since last week, running my same functional program on the windows XP(Pentium M1.5G), the Ruby version is 10 times slower than the Java version. The program is to find the prime numbers like 2, 3,5, 7, 11, 13... Are there setup issues? or it is normal? > 1. Ruby result: 101 seconds > 2. Java result:9.8 seconds > 3. Perl result:62 seconds > Well, Ruby is a scripting language and not compiled, so its results in the ballpark of Perl is about right. Only 10x as slow as Java JVM? wow, that's pretty good, Ruby rocks! Also, for more fun, run your Ruby through YARV and also run zenoptimize on it Benchmarks are great fun and prove nothing. Ralph "PJPizza" Siegler