js vs jquery

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  obj = {
   test1: 'test1',
   test2: 'test2',
   test3: 'test3',
   test4: 'test4',
   test5: 'test5',
   test6: 'test6',
   test7: 'test7',
   test8: 'test8',
   test9: 'test9',
   test10: 'test10'
  }
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
js
for (var key in obj) {
 if (obj.hasOwnProperty(key)) {

 }
}
ready
jquery
$.each(obj, function(k, v) {});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.