Isaac Gouy wrote:
> Now my impression is that I misunderstood how different JRuby
> characteristics are from Java. I suspect that whenever you mention
> "adaptive optimization" or HotSpot, I'll get confused about what JRuby
> is actually doing (and in-any-case JRuby is going to be doing things
> differently in future).
> 
> You should know better than to post code snippet timings :-)
> What if you have:
> 
> t = Time.now
> looper
> puts Time.now - t
> t = Time.now
> looper
> puts Time.now - t
> ...
> ...
> ...

This would produce results roughly like the second version. The key 
point is to have the same physical code called multiple times.

> As for the alioth shootout / benchmarks game, we don't re-run in a
> loop because Clean and Haskell compilers notice that once around the
> loop is enough to get the answer :-)
> 
> (When we poked at JVM in the FAQ, the "started once" examples are just
> like your SCRIPT2 - main renamed test, and called within a timing
> loop.)

That sounds good then. I'll be looking forward to the next run against 
JRuby 1.1 when we get it finished :)

- Charlie