Re: Question about profiling

2009-03-16 Thread Vincent Foley
Some numbers: Clojure: ]% time java -server -cp clj-starcraft.jar:$HOME/src/clojure/ clojure.jar clojure.main dump.clj misc/replays/*.rep 1047 "Elapsed time: 159605.6084 msecs" java -server -cp clj-starcraft.jar:$HOME/src/clojure/clojure.jar clojure.main 163.84s user 1.11s system 102% cpu 2:41.

Re: Question about profiling

2009-03-16 Thread Vincent Foley
Java 1.6.0_07 for Hardy vs Java 1.6.0_10 for Ibex. However, with this newer package, the Java program is now more than 13x faster than my Clojure program. Looks like I got a lot of work ahead of me. Vincent. On Mar 16, 9:31 pm, Jeffrey Straszheim wrote: > Are they both Java 6?  I know it fixe

Re: Question about profiling

2009-03-16 Thread Jeffrey Straszheim
Are they both Java 6? I know it fixed a lot of performance issue over 5. On Mon, Mar 16, 2009 at 9:22 PM, Vincent Foley wrote: > > I found that the problem is caused by the version of Sun's JVM on > Ubunty Hardy Heron. On my Ibex machine at home, the first two lines > (Object.wait and Referenc

Re: Question about profiling

2009-03-16 Thread Vincent Foley
I found that the problem is caused by the version of Sun's JVM on Ubunty Hardy Heron. On my Ibex machine at home, the first two lines (Object.wait and ReferenceQueue.remove) are not even there and the costliest method if AtomicInteger.get. Vincent. --~--~-~--~~~---~--

Question about profiling

2009-03-16 Thread Vincent Foley
I was trying to make an application go faster today when I found out that a Java program that does pretty much the same task was 8 times faster. I used the -Xrunhprof:cpu=times profiling flag to know where I should look, and the results are a little puzzling: CPU TIME (ms) BEGIN (total = 3334005