Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11.2; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Mac OS X 11.2
Desktop
3 years ago
Test name Executions per second
Get from Object 722798784.0 Ops/sec
Has key in Object 724578048.0 Ops/sec
Get from Map 64834288.0 Ops/sec
Has key in Map 55019060.0 Ops/sec
Get from Array 721914560.0 Ops/sec
Has key in Array OLD 116467576.0 Ops/sec
Has key in Array NEW 122239584.0 Ops/sec
Has key in Set 68030856.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


;