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
Jump 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
Test name
Executions per second
vanilla
125549576.0 Ops/sec
text
250578.7 Ops/sec
html
103536.2 Ops/sec
Related benchmarks:
Vanilla JS VS JQuery DOM perfomance
Vanilla JS vs jQuery
vanila vs jq 3.5.1
JS VS jquery 3.5.1 DOM perfomance
Vanilla JS VS JQuery DOM perfomance(no var)
Vergleich
queryselector vs getelemebnt
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?