Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Chrome 115
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Conspicuous Map lookup 151.2 Ops/sec
Conspicuous Obj lookup 133.1 Ops/sec
Conspicuous Map lookup 2 151.0 Ops/sec
Conspicuous Obj lookup 2 133.4 Ops/sec
Map.entries 4085.7 Ops/sec
JSON.stringify 294.0 Ops/sec
parse Map entries 7498813.5 Ops/sec
parse JSON 292.5 Ops/sec
encode & decode Map 955.6 Ops/sec
encode & decode JSON 140.6 Ops/sec
Script Preparation code:
Tests:
  • Conspicuous Map lookup

  • Conspicuous Obj lookup

  • Conspicuous Map lookup 2

  • Conspicuous Obj lookup 2

  • Map.entries

  • JSON.stringify

  • parse Map entries

  • parse JSON

  • encode & decode Map

  • encode & decode JSON