Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Map vs Object steamid64 lookup
(version: 0)
Lookup of map vs object with steamid64 as keys
Comparing performance of:
Map lookup vs Obj lookup
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var map = new Map(); var obj = {}; map.set('76561197960435530', {}); obj['76561197960435530'] = {}; var i = 0, count = 1000, a;
Tests:
Map lookup
for (i = 0; i < count; i++) { a = map.get('76561197960435530'); }
Obj lookup
for (i = 0; i < count; i++) { a = obj['76561197960435530']; }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Map lookup
Obj lookup
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:
Object spread vs New map with string keys
Object.keys().length vs Map.size
Test if key is in object.
entries vs keys lookup
Object.fromEntries vs Map
Comments
Confirm delete:
Do you really want to delete benchmark?