Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Map.get vs Array.findIndex (small)
(version: 1)
Benchmark.js
which is faster
Comparing performance of:
Map.get vs Array.findIndex
Created:
12 days ago
by:
Guest
Go to the latest result
Script Preparation code:
var m = new Map(); var a = []; for (var i = 1; i <= 50; i++) { m.set('url_' + i, 'data'); a.push({url: 'url_' + i, data: 'data'}); }
Tests:
Map.get
m.get('url_50000');
Array.findIndex
a.findIndex(val => val.url === 'url_50');
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Map.get
Array.findIndex
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!
Comments
Confirm delete:
Do you really want to delete benchmark?