vanillajs-by-tag

JavaScript performance comparison

Revision 13 of this test case created by Nathan

Preparation code

<script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.2.0/prototype.js"></script>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="https://fireboltjs.com/firebolt.min.js"></script>
<script>
$.noConflict();
// Prevent browser optimizations by storing results in a container array
var container = [];
</script>
      
<script>
Benchmark.prototype.setup = function() {
  container.length = 0;

};
</script>

Preparation code output

<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script src="https://fireboltjs.com/firebolt.min.js"></script> <script> $.noConflict(); // Prevent browser optimizations by storing results in a container array var container = []; </script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
1 - Vanilla JS
container[container.length] = document.getElementsByTagName('span');
pending…
2 - Firebolt
container[container.length] = $TAG('span');
pending…
3 - Prototype JS
container[container.length] = Prototype.Selector.select('span', document);
pending…
4 - jQuery
container[container.length] = jQuery('span');
pending…

Compare results of other browsers

Revisions

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

0 Comments