From: Charles O Nutter Date: 2006-08-03T03:21:24+09:00 Subject: Re: For performance, write it in C - Part 3, Source code now available ------=_Part_70480_2188283.1154542878849 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline BTW, I managed to resolve my speed issues for the C version. My machine seems to default into "on demand" speed mode, so my runs were starting off at 1.0GHz before ramping up. With speed scaling off the C version does much better...though still not as fast as Java: With IO: headius@opteron:~/latin_in_c$ time ./latin > /dev/null 2>&1 real 0m0.707s user 0m0.700s sys 0m0.004s Without IO: headius@opteron:~/latin_in_c$ time ./latin real 0m0.586s user 0m0.580s sys 0m0.004s -- 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_70480_2188283.1154542878849--