On Thu, Nov 20, 2008 at 9:37 PM,  <brabuhr / gmail.com> wrote:
> On Thu, Nov 20, 2008 at 3:46 PM, jzakiya <jzakiya / mail.com> wrote:
>> I've uploaded optimized upgraded versions of my SoZ prime generators,
>> with included benchmarks against the Sieve of Atkin (SoA) and Sieve of
>> Eratosthenes (SoE).  Available here:
>>
>> http://www.4shared.com/dir/7467736/97bd7b71/sharing.html
>>
>> I've tried to run my Ruby code with JRuby, but I can't get JRuby to
>> install correctly on my laptop (w/PCLinuxOS, Intel P4 2.8Ghz).
>> I would appreciate if someone would run my code under JRuby, Rubinius,
>> et al, and post results.
>
> $ jruby SieveOfZakiya.rb
> Error, could not compile; pass -d or
> -J-Djruby.jit.logging.verbose=true for more details
>                   user     system      total        real
> primes up to 10000001:  10.529000   0.000000  10.529000 ( 10.528562)
> primes up to 10000001:  14.105000   0.000000  14.105000 ( 14.105188)
> primes up to 10000001:   7.248000   0.000000   7.248000 (  7.248299)
> primes up to 10000001:  15.564000   0.000000  15.564000 ( 15.564142)
> primes up to 10000001:  11.170000   0.000000  11.170000 ( 11.170565)
> primes up to 10000001:   8.735000   0.000000   8.735000 (  8.734701)
> primes up to 10000001:   9.330000   0.000000   9.330000 (  9.330105)
> primes up to 10000001:  11.366000   0.000000  11.366000 ( 11.365478)
> primes up to 10000001:   8.015000   0.000000   8.015000 (  8.015094)
> primes up to 10000001:  12.421000   0.000000  12.421000 ( 12.420387)
> primes up to 10000001:  14.079000   0.000000  14.079000 ( 14.079476)

$ jruby -J-server SieveOfZakiya.rb
Error, could not compile; pass -d or
-J-Djruby.jit.logging.verbose=true for more details
                    user     system      total        real
primes up to 10000001:   6.195000   0.000000   6.195000 (  6.194438)
primes up to 10000001:  11.389000   0.000000  11.389000 ( 11.388889)
primes up to 10000001:   6.085000   0.000000   6.085000 (  6.085215)
primes up to 10000001:  12.252000   0.000000  12.252000 ( 12.252067)
primes up to 10000001:   7.555000   0.000000   7.555000 (  7.555602)
primes up to 10000001:   6.153000   0.000000   6.153000 (  6.153644)
primes up to 10000001:   5.805000   0.000000   5.805000 (  5.805000)
primes up to 10000001:   9.916000   0.000000   9.916000 (  9.916375)
primes up to 10000001:   9.148000   0.000000   9.148000 (  9.147656)
primes up to 10000001:  13.169000   0.000000  13.169000 ( 13.169869)
primes up to 10000001:  16.541000   0.000000  16.541000 ( 16.540694)

$ jruby -J-Xmn128m -J-Xms1024m -J-Xmx1024m -J-server SieveOfZakiya.rb
Error, could not compile; pass -d or
-J-Djruby.jit.logging.verbose=true for more details
                    user     system      total        real
primes up to 10000001:   6.087000   0.000000   6.087000 (  6.086382)
primes up to 10000001:   9.360000   0.000000   9.360000 (  9.360478)
primes up to 10000001:   3.681000   0.000000   3.681000 (  3.681715)
primes up to 10000001:  10.023000   0.000000  10.023000 ( 10.022875)
primes up to 10000001:   8.585000   0.000000   8.585000 (  8.585405)
primes up to 10000001:   5.008000   0.000000   5.008000 (  5.007991)
primes up to 10000001:   5.066000   0.000000   5.066000 (  5.065975)
primes up to 10000001:   6.416000   0.000000   6.416000 (  6.415926)
primes up to 10000001:   3.556000   0.000000   3.556000 (  3.556291)
primes up to 10000001:   4.631000   0.000000   4.631000 (  4.631488)
primes up to 10000001:   3.163000   0.000000   3.163000 (  3.163181)