Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
dadadada
(version: 1)
Comparing performance of:
1 vs 2
Created:
11 months ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); }
Tests:
1
var b = new Set([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) return b.has(9)
2
var a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; return a.includes(9)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
1
2
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
11 months ago
)
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser/OS:
Chrome 133 on Linux
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
1
9942440.0 Ops/sec
2
127213344.0 Ops/sec
Related benchmarks:
reate array by lenght
Assigning new variable
Test array concat
js mul vs pow
test early return
set vs uniq
Test direct and destructuring performances
comparing array creation
test slice czourhgirzjgprz
Comments
Confirm delete:
Do you really want to delete benchmark?