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 147.1 Ops/sec
Conspicuous Obj lookup 128.8 Ops/sec
Conspicuous Map lookup 2 147.6 Ops/sec
Conspicuous Obj lookup 2 129.7 Ops/sec
Map.entries 29962716.0 Ops/sec
JSON.stringify 293.3 Ops/sec
parse Map entries 7525545.5 Ops/sec
parse JSON 293.1 Ops/sec
encode & decode Map 1121.7 Ops/sec
encode & decode JSON 144.0 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