From: Isaac Gouy Date: 2006-08-02T02:35:13+09:00 Subject: Re: For performance, write it in C - Part 3, Source code now available Peter Hickman wrote: > Isaac Gouy wrote: > > Peter Hickman wrote: > > > >> The source code is available from > >> http://peterhi.dyndns.org/write_it_in_c/index.html I recall someone stating "benchmarking without analysis is bogus". As a first step, comment out the print statements time ./latinc user 0m0.492s sys 0m0.004 time java Latin user 0m0.992s sys 0m0.052s With the print statements ~5.4x without print statements ~2.1x iirc the Java program is shuffling around double byte unicode chars and the C program is handling single byte chars.