js vs jquery v2.2.4
js vs jquery get ID
Date tested:
6 years ago
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Test name
Executions per second
js
2327422.8 Ops/sec
jquery v2.2.4
712785.3 Ops/sec
Benchmark definition (click to collapse):
HTML Preparation code:
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script> <h1 id="test">Hello World</h3>
Tests:
js
var text = document.getElementById("test");
jquery v2.2.4
var text = jQuery("#test");
Open this result on MeasureThat.net