Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
findIndex vs map 22
(version: 1)
Comparing performance of:
findindex vs map
Created:
10 months ago
by:
Guest
Jump to the latest result
Tests:
findindex
var test = [{name: 'test1', id: 1}, {name: 'test2', id: 2}, {name: 'test3', id: 3}]; var index = test.findIndex(i => i.name === 'test3');
map
var test = new Set(["aaa", "bbb", "ccc"]) var index = test["ccc"]
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
findindex
map
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
10 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Browser/OS:
Chrome 137 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
findindex
51899148.0 Ops/sec
map
14665523.0 Ops/sec
Related benchmarks:
object key vs indexof
object key vs indexof
findIndex vs map
test iteration
tests test
Comparing findIndex with map & indexOf
findIndex vs new Map
findIndex vs new Map123fdfdsfsfd
findIndex vs map and create new array
Comments
Confirm delete:
Do you really want to delete benchmark?