Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Chrome 80
Windows
Desktop
4 years ago
Test name Executions per second
Polyfill Map by Object 1033820.6 Ops/sec
Native Map by Object 1326942.5 Ops/sec
Native Map by JSON 312356.2 Ops/sec
Object by JSON 319923.1 Ops/sec
Native WeakMap by Object 1282457.2 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


;