From: Charles O Nutter Date: 2006-08-02T01:48:12+09:00 Subject: Re: For performance, write it in C - Part 3, Source code now available ------=_Part_49814_24340407.1154450885767 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Ok, so there's a bunch of problems with the Java version. - In addition to the addRow run and the Java startup time you're also benchmarking over 5200 array modifications to set Compared values to true - Your variable naming is entirely contrary to every Java coding convention published (not a benchmark thing, but it sets off any Java devs warning flags) - Almost all of the time spent running is spent building and printing strings Benchmarking just the algorithm run itself with no gross string creation and printing, I'm getting in the neighborhood of 370ms per invocation once HotSpot has optimized the code. I'll have more detailed numbers shortly. -- Contribute to RubySpec! @ www.headius.com/rubyspec Charles Oliver Nutter @ headius.blogspot.com Ruby User @ ruby.mn JRuby Developer @ www.jruby.org Application Architect @ www.ventera.com ------=_Part_49814_24340407.1154450885767--