List Info

Thread: Re: GNU Smalltalk 3.0 released




Re: GNU Smalltalk 3.0 released
country flaguser name
United States
2008-01-07 23:13:02
After a basic 

./configure prefix=/opt/gst
make

I measured the benchmarks game programs with 3.0 and noticed
much
longer times compared to 2.3.6

I assume I've made some mistake in the configure and build -
any
suggestions on what I might need to add to ./configure?

Maybe I should be using a different command line with 3.0?

Here's an example measurement
http://shootout.a
lioth.debian.org/gp4sandbox/benchmark.php?test=nbody&lan
g=gst&id=0#log


3.0
nbody,gst, ,200000, 60.484s 3940KB
nbody,gst, ,2000000, 604.918s 3940KB

2.3.6
nbody,gst, ,200000, 18.161s 6904KB
nbody,gst, ,2000000, 184.036s 6900KB


/opt/gst/bin/gst -QI /opt/gst/var/lib/smalltalk/gst.im
../../Include/smalltalk/gst/platform.gst ../nbody.gst -a
200000





     
____________________________________________________________
________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/ca
tegory.php?category=shopping


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

Re: Re: GNU Smalltalk 3.0 released
country flaguser name
Italy
2008-01-08 00:17:41
Isaac Gouy wrote:
> After a basic 
> 
> ./configure prefix=/opt/gst
> make
> 
> I measured the benchmarks game programs with 3.0 and
noticed much
> longer times compared to 2.3.6

I don't recall if 2.3.6 was compiled with --enable-jit.

Also, you have to wrap the main body in a class or an

Eval [
     ...
]

block instead of just having the bang-separated

     ... !

This is listed in the NEWS file (and the announcement) as:

"Evaluated code now puts undeclared variables in a
private namespace (so
that you do not have to declare temporaries) and defers the
resolution
of undefined variable bindings until the time of their first
access.

Unfortunately, this slows down evaluated code noticeably;
you can get
back the performance by putting code in a method or an Eval
(in the
latter case, you will have to declare temporaries
explicitly, or the
code will still use the slower deferred variable
binding)."

Paolo


_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )