Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Get from Object 17411636.0 Ops/sec
Has key in Object 17406198.0 Ops/sec
Get from Map 17473716.0 Ops/sec
Has key in Map 17417928.0 Ops/sec
Get from Array 17203938.0 Ops/sec
Has key in Array OLD 11859929.0 Ops/sec
Has key in Array NEW 17330032.0 Ops/sec
Has key in Set 17466292.0 Ops/sec
Script Preparation code:
Tests:
  • Get from Object

  • Has key in Object

  • Get from Map

  • Has key in Map

  • Get from Array

  • Has key in Array OLD

  • Has key in Array NEW

  • Has key in Set


;