Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
Chrome 83
Windows
Desktop
4 years ago
Test name Executions per second
Polyfill Map by Object 1464697.1 Ops/sec
Native Map by Object 1819116.0 Ops/sec
Native Map by JSON 393813.9 Ops/sec
Object by JSON 404959.9 Ops/sec
Native WeakMap by Object 1857971.4 Ops/sec
Script Preparation code:
Tests:
  • Polyfill Map by Object

  • Native Map by Object

  • Native Map by JSON

  • Object by JSON

  • Native WeakMap by Object


;