Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Array includes set has
(version: 0)
Comparing performance of:
11 vs 22
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var a = [...Array(10000).keys()] var b = new Set(a)
Tests:
11
a.includes(9999)
22
b.has(9999)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
11
22
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
set.has vs. array.includes (1kkk)
set.has vs. array.includes (big)
set.has vs. array.includes (large)
set vs array iteration many
Comments
Confirm delete:
Do you really want to delete benchmark?