Re: fast & Nice

Isaac Gouy <[email protected]> Fri, 13 Jan 2006 07:42:02 -0800 (PST)
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
> Wow, nice is the second fastest language around? ;-)

Perhaps I should note that the Nice program is being run on jdk1.5.0_05
and nosed-ahead of the jdk1.5.0_05 program. ;-)


> > But why is Nice memory use so much less than Java for
> > those programs?=20
> Is the implementation very close?

The method text is copy & paste from the Java program to Nice.

In Java they are non-static methods, in Nice they are package-level.

Java
http://shootout.alioth.debian.org/gp4/benchmark.php?test=3Dspectralnorm&l=
ang=3Djava14&id=3D0

Nice
http://shootout.alioth.debian.org/gp4/benchmark.php?test=3Dspectralnorm&l=
ang=3Dnice&id=3D0


> One possibility is that the JVM is started with different arguments.

The Nice program is in a jar file, the Java program isn't.
(A build & run log shown below each program source code listing.)


> Another is a subtle interaction with the garbage collector.=20
> Is this the case for most benchmarks, or only this one?

This one seems to be an exception (and in other cases the Nice and Java
programs may differ more).

best wishes, Isaac

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around=20
http://mail.yahoo.com=20


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi=
les
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=3D7637&alloc_id=3D16865&op=3Dclick