Too much recursion 

Higher Order Javascript

 



   Subscribe in NewsGator Online    Subscribe in Rojo    Add to Google      Add to My AOL   Subscribe in FeedLounge   Add to netvibes  

Brendan Eich's Roadmap  Standard ECMA-262  www.schillmania.com  www.quirksmode.org 
www.snook.ca  www.davidflanagan.com  www.kryogenix.org  www.thomasfrank.se 
www.dustindiaz.com  Yahoo! UI Library  www.crockford.com  www.brainjacked.com 
chadlindstrom.ca  www.browserland.org     
       

Friday, July 28, 2006

 

Bizzare Firefox Speed Tests


Here are some speed tests done in Firefox. IE6 does not exibit same behaviour. Anybody can come up with a 'best practises' rule after looking this please post it.
I'd say, instantate your objects with the same type before you get/set them within a loop.









#TESTFUNCTIONSECONDS
#1
var _test2={};
%%
_test2._value = 123;
1.139 µs
#3
var _test2={};_test2._value=0;
%%
_test2._value.mmm = 123;
36.800 µs
#4
var _test2={};_test2._value=0;_test2._value.mmm=123;
%%
_test2._value.mmm = 123;
28.275 µs
#5
var _test2={_value:123};
%%
_test2._value.mmm = 123;
30.300 µs
#6
var _test2={_value:{mmm:123}};
%%
_test2._value.mmm = 123;
1.276 µs
#7
var _test2={};_test2._value={};_test2._value.mmm=123;
%%
_test2._value['mmm'] = 123;
1.326 µs
#8
var _test2={};_test2._value={};
%%
_test2._value.mmm = 123;
1.339 µs

Comments:
What version of Firefox? 1.5? (On what platform?)
 
@Thomas:Latest version of firefox on win32.
 
Post a Comment

Links to this post:

Create a Link



<< Home

Archives

June 2006   July 2006   August 2006   September 2006  

This page is powered by Blogger. Isn't yours?