vanillajs-by-tag (v13)

Revision 13 of this benchmark created by Nathan on


Preparation HTML

<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>

Setup

container.length = 0;

Test runner

Ready to run.

Testing in
TestOps/sec
1 - Vanilla JS
container[container.length] = document.getElementsByTagName('span');
ready
2 - Firebolt
container[container.length] = $TAG('span');
ready
3 - Prototype JS
container[container.length] = Prototype.Selector.select('span', document);
ready
4 - jQuery
container[container.length] = jQuery('span');
ready

Revisions

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