Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Jquery Vs VanillaJS
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:144.0) Gecko/20100101 Firefox/144.0
Browser:
Firefox 144
Operating system:
Windows
Device Platform:
Desktop
Date tested:
6 months ago
Test name
Executions per second
Jquery
54401.6 Ops/sec
Vanilla JS
37025.6 Ops/sec
HTML Preparation code:
<script src='https://code.jquery.com/jquery-3.6.0.min.js'></script> <div id='test' data-count="0"></div>
Tests:
Jquery
for(let i = 0; i < 10; i++) { $('#test').text("actual count value is : "+$('#test').data('count')); $('#test').data('count', +$('#test').data('count')+1); }
Vanilla JS
for(let i = 0; i < 10; i++) { document.querySelector('#test').innerText = "actual count value is : "+document.querySelector('#test').dataset.count; document.querySelector('#test').dataset.count = +document.querySelector('#test').dataset.count+1; }