Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113
Windows
Desktop
one year ago
Test name Executions per second
Polyfill Map by Object 2382827.8 Ops/sec
Native Map by Object 2610818.0 Ops/sec
Native Map by JSON 579599.6 Ops/sec
Object by JSON 591189.4 Ops/sec
Native WeakMap by Object 2426421.8 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


;