Object/map data accessors

Benchmark created by Will Nelson on


Setup

const map = new Map();
  const obj = {};
  
  map.set('stuff', 'things');
  obj.stuff = 'things';

Test runner

Ready to run.

Testing in
TestOps/sec
Map
const data = map.get('stuff');
ready
Object
const data = obj.stuff;
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Will Nelson on