Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
Polyfill Map by Object 738676.5 Ops/sec
Native Map by Object 1121735.6 Ops/sec
Native Map by JSON 230377.8 Ops/sec
Object by JSON 263473.2 Ops/sec
Native WeakMap by Object 1154782.1 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


;