3 ms·
I created a jsperf to measure a hashtable-like object with for-in/Objekt.keys The performance differs only with 50%, I expected more actually. Am I doing somet
by PSeitz 12y ago
I created a jsperf to measure a hashtable-like object with for-in/Objekt.keys
The performance differs only with 50%, I expected more actually. Am I doing something wrong?
http://jsperf.com/for-in-with-hashtable-like-object http://jsperf.com/for-in-with-hashtable-like-object
- autnecare 12y agoI guess it depends on what you're intent is; http://jsperf.com/for-in-with-hashtable-like-object/4 http://jsperf.com/for-in-with-hashtable-like-object/4
- PSeitz 12y agoThe article states "Code compiled by the optimizing compiler can easily be, say, 100x faster than the code generated by the generic compiler" So expected a quite more than a factor of 2 ...