Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Test jqery
(version: 1)
Comparing performance of:
vanilla vs text vs html
Created:
one year ago
by:
Guest
Go to the latest result
HTML Preparation code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <div id="nhngodo">Hi! NHNgodo!</div>
Script Preparation code:
var el = document.getElementById("nhngodo"); el.innerText = "Hi! NHNgodo!";
Tests:
vanilla
/*When writing async/deferred tests, use `deferred.resolve()` to mark test as done*/
text
$("#nhngodo").text("Hi! NHNgodo!");
html
$("#nhngodo").html("Hi! NHNgodo!");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
vanilla
text
html
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser/OS:
Chrome 131 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
vanilla
125.5M/s
text
251K/s
html
104K/s
View exact numbers
Test name
Executions per second
✓
vanilla
125,549,576 Ops/sec
text
250,579 Ops/sec
html
103,536 Ops/sec
Related benchmarks
Vanilla JS VS JQuery DOM perfomance
JS VS jquery 3.5.1 DOM perfomance
Vanilla JS VS JQuery 3.6.0 DOM perfomance
Vanilla JS VS JQuery DOM perfomance - UPDATE
Comments
Confirm delete:
Do you really want to delete benchmark?