Just wrote a small test at jsperf for testing a for loop to iterate an
array of objects: http://jsperf.com/if-with-i

Can somebody explain why there's such a big speed difference between
the two methods in Chrome and Safari?
The results are almost identical in FF (11,074 vs 12,943 ops).

But in Chrome I get 60,266 vs 9,494 ops and in Safari: 18,343 vs 9,509
ops.

As far as I can tell, trying to access an element of array that
doesn't exist is kinda slow... but why? :-)

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to