My programm finishes but its just slower.

The prgramm I ran is simular (i changed the -main a little bit) but
ran it with the same parameters java -server -jar
Clojure_Programm_uberjar.

Im pretty sure what I messured is correct because it reflects the
messurments on the shootout.

On Mar 15, 7:06 pm, Andy Fingerhut <andy.finger...@gmail.com> wrote:
> Well, if the default max heap of your JVM is not enough to run the program 
> successfully to completion, then I don't think that you will be very happy in 
> getting the program to complete :-)  Which JVM are you using, by the way?  
> And what is the full command line you are using for the Java program and the 
> Clojure program when you run them?  It seems odd that the Java and Scala 
> programs are going over 400 MB of memory use, but the Clojure version is 
> staying so low.  Are you using an unmodified version of this Clojure source 
> file to get these results?
>
> http://shootout.alioth.debian.org/u64/program.php?test=binarytrees&la...
>
> The default max heap size of my JVMs seems to be at least 512 MB, although I 
> don't know exactly what value it is.  It is certainly enough for this program 
> to finish, and get to a memory utilization of nearly 512 MB.
>
> Andy
>
> On Mar 15, 2011, at 9:54 AM, Nick Zbinden wrote:
>
> > Hi,
>
> > I did not mention that earlier but the benchmark sais no change in
> > heapsize.
>
> > See here:
> >http://shootout.alioth.debian.org/u32/performance.php?test=binarytrees
>
> > Does Clojure just have a much smaller heapsize in the standart case?
>
> > On Mar 15, 5:19 am, Andy Fingerhut <andy.finger...@gmail.com> wrote:
> >> 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&la...
>
> >>> Its basiclly a port from the java version.
> >>>http://shootout.alioth.debian.org/u64/program.php?test=binarytrees&la...
>
> >>> The Problem with the Clojure version you can see here:
> >>>https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/m...
> >>>https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/m...
>
> >>> 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/m...
>
> >>> 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/m...
>
> >>> 1.3 
> >>> version:https://github.com/nickik/IDPA-Programmiersprachen-Benchmarken/blob/m...
> >>> (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 clojure@googlegroups.com
> >>> Note that posts from new members are moderated - please be patient with 
> >>> your first post.
> >>> To unsubscribe from this group, send email to
> >>> clojure+unsubscr...@googlegroups.com
> >>> 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 clojure@googlegroups.com
> > Note that posts from new members are moderated - please be patient with 
> > your first post.
> > To unsubscribe from this group, send email to
> > clojure+unsubscr...@googlegroups.com
> > 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 clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to