Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="ISO-8859-1" Message-ID: <270317591.RgZlF00zI7@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Sun, 28 Oct 2012 20:10:05 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 7Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. <67583587.7BbXikoxoM@PointedEars.de> <3102322.j8kCu7WbkW@PointedEars.de> <1886339.7pA5ev5edD@PointedEars.de> Followup-To: comp.lang.javascript MIME-Version: 1.0 Lines: 27 NNTP-Posting-Date: 28 Oct 2012 20:10:06 CET NNTP-Posting-Host: 6bb13ed5.newsspool3.arcor-online.net X-Trace: DXC=8=@DdI`d:iVI?44J>Z[:RQMcF=Q^Z^V3X4Fo<]lROoRQ8kFKPe^bhg0G;bb]ARo8Th2caEY X-Complaints-To: usenet-abuse@arcor.de Xref: csiph.com comp.lang.javascript:16932 Cezary Tomczyk wrote: > I even extended little bit this test > http://jsperf.com/typeof-equals-triple-double by comparing two different > objects and IE9, Google Chrome 22.0.1229.94, Opera 12.02 for 4 tests are > more or less similar, but Firefox 16.0.2 surprised me little bit: > > triple equals: 8167 Ops/sec > double equals: 4752 Ops/sec > triple equals - different objects: 90830 Ops/sec > double equals - different objects: 89815 Ops/sec > > All of them tested on Windows 7, 64 bit. > > What a huge difference. Weird for me, little bit. 1. You are benchmarking the wrong feature there. 2. I do not think you need loops with jsperf. 3. Never trust benchmarks. PointedEars -- Prototype.js was written by people who don't know javascript for people who don't know javascript. People who don't know javascript are not the best source of advice on designing systems that use javascript. -- Richard Cornford, cljs,