On a MacBook Pro with 2.4 GHz Intel Core 2 Duo and 3 GB of RAM (although the program only used about half a gig at most), that program finished in about 33 seconds, using 38.5 sec of user + system CPU time. The average CPU utilization was 126% (all of one CPU core, and 26% of another, on average). The CPU utilization never went below 90% of one CPU core.
>From the memory use graph you link to, the memory use never goes over about >128 MB. I would bet that is the default maximum heap size in your JVM, or >perhaps one specified explicitly. That is likely not enough, and your program >is causing the JVM to invoke garbage collection repeatedly. I'd recommend using a -Xmx512m argument on the command line, or maybe a bit more, and see if things speed up. Andy On Mar 14, 2011, at 6:25 PM, Nick Zbinden wrote: > Hi, > > I'm working with binarytree benchmark from the Language Shotout. > http://shootout.alioth.debian.org/u64/program.php?test=binarytrees&lang=clojure&id=5 > > Its basiclly a port from the java version. > http://shootout.alioth.debian.org/u64/program.php?test=binarytrees&lang=java&id=2 > > The Problem with the Clojure version you can see here: > https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/maindoku/bilder/AverageCPUAll.png > https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/maindoku/bilder/CPUAll.png > > Clojure does not use the CPU to the full extened witch suggest that > there something blocking it. I tried to figure out what it was with > profiling but I never did that befor and I had no success. > > Node that the Clojure uses less memory too. > https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/maindoku/bilder/MemoryAll.png > > Has anybody an Idea why this happens? > > I ported the programm to 1.3 but that didn't help: > > 1.2 version: > https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/clojure/src/bt/binarytrees.clj > > 1.3 version: > https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/master/clojure/src/bt/binarytrees_me.clj > (all the benchmarks where made with the 1.2er programm) > > thx for the help > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
