Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
jQuery 3.6.0 vs Vanilla JS
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 11; Mobile; rv:152.0) Gecko/152.0 Firefox/152.0
Browser:
Firefox Mobile 152
Operating system:
Android
Device Platform:
Mobile
Date tested:
2 months ago
Benchmark engine:
Benchmark.js
Vanilla JS ID test
730K/s
Vanilla JS Class test
679K/s
jQuery ID Test
595K/s
jQuery Class Test
285K/s
View exact numbers
Test name
Executions per second
✓
Vanilla JS ID test
729,938 Ops/sec
Vanilla JS Class test
678,737 Ops/sec
jQuery ID Test
594,757 Ops/sec
jQuery Class Test
284,871 Ops/sec
HTML Preparation code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <div class="test">blah</div> <div id="test">blah</div>
Tests:
Vanilla JS ID test
document.querySelector('#test').classList.add('fuck');
Vanilla JS Class test
document.querySelector('.test').classList.add('fuck');
jQuery ID Test
$('#test').addClass('fuck');
jQuery Class Test
$('.test').addClass('fuck');