Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
querySelector2
(version: 0)
Comparing performance of:
Q vs A
Created:
2 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<div id="test">12345</div>
Script Preparation code:
function A(V){ return document.querySelector(V); }
Tests:
Q
const B = document.querySelector("#A");
A
const B = A("#A");
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Q
A
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Browser/OS:
Chrome 120 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Q
814558.8 Ops/sec
A
740915.7 Ops/sec
Related benchmarks:
getElementById, querySelectorAll
getElementById querySelector
Selector
Test3333
getElementById vs querySelector (ver.2023.05)
Comments
Confirm delete:
Do you really want to delete benchmark?