function runTest() {
  const map = new Map();
  // const dict = new HashTable();

  reportTime('Map#set', () => {
    for (let i = 0; i < keys.length; i++) {
      map.set(keys[i], keys[i]);
    }
    console.log('set.keys.length', keys.length);
  });

  reportTime('Map#get', () => {
    for (let i = 0; i < keys.length; i++) {
      const val = map.get(keys[i]);
      assert.equal(val, keys[i]);
    }
    console.log('get.keys.length', keys.length);
  });
}
Using Benchmark.js
@example
- https://benchmarkjs.com/
- https://github.com/bootstraponline-archive/livepreview_benchmark/blob/gh-pages/public/js/benchmarkjs/test.js#L14-16