From: Peter Hickman Date: 2006-08-02T16:45:22+09:00 Subject: Re: For performance, write it in C - Part 3, Source code now available Charles O Nutter wrote: > 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 That was simple because I couldn't define the array when I declared it as I did in C. > - 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) And this affects the performance? > - 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. >