Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
querySelector2
(version: 0)
Benchmark.js
Comparing performance of:
Q vs A
Created:
2 years ago
by:
Guest
Go 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
Q
815K/s
A
741K/s
View exact numbers
Test name
Executions per second
✓
Q
814,559 Ops/sec
A
740,916 Ops/sec
Related benchmarks
getElementById querySelector
getElementById vs querySelector (ver.2023.05)
Comments
Confirm delete:
Do you really want to delete benchmark?