Link Details

Link 97963 thumbnail
User 111696 avatar

By bloid
via blogs.sun.com
Published: Jul 25 2008 / 22:32

I built a loop benchmarking test suite for different ways of coding loops in JavaScript. There are a few of these out there already, but I didn't find any that acknowledged the difference between native arrays and HTML collections. Since the underlying implementations are different (HTML collections for example lack the pop() and slice() methods), benchmarks that don't test against both are probably missing important information.
  • 12
  • 0
  • 1165
  • 378

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.