JavaScript Performance Benchmark

Giovanni Corriga giovanni at corriga.net
Thu Apr 13 11:05:42 UTC 2006


Il giorno gio, 13/04/2006 alle 11.22 +0200, Bert Freudenberg ha scritto:
> Am 12.04.2006 um 21:59 schrieb Dan Ingalls:
> 
> > I've been having fun with JavaScript, and thought folks would enjoy  
> > this little tribute to tinyBenchmarks...
> >
> > 	http://www.weather-dimensions.com/Dan/JavaScriptBenchmark.html
> 
> Fun indeed. Anyone else noticed the abysmal send performance in  
> Apple's Safari?
> 
> 	n1 = 4; time = 646 milliseconds; 3095975 operations/sec.
> 	n2 = 24; time = 3443 milliseconds; 21791 sends/sec.
> 
> Firefox is 20x faster:
> 
> 	n1 = 8; time = 566 milliseconds; 7067138 operations/sec.
> 	n2 = 27; time = 743 milliseconds; 427740 sends/sec.
> 

Firefox uses Spidermonkey, which is the original implementation of
JavaScript (from Netscape 2.0) and is a bytecode interpreter. Safari's
JavascriptCore is based on KDE's KJS, which works on ASTs.

	Giovanni




More information about the Squeak-dev mailing list