Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Chrome 94
Windows
Desktop
3 years ago
Test name Executions per second
Map insert 836.2 Ops/sec
Obj insert 627.9 Ops/sec
Map delete 11521.7 Ops/sec
Obj delete using delete 9836.5 Ops/sec
Extra: Object delete assimiling undefined 4182.2 Ops/sec
Map lookup 12069.4 Ops/sec
Object lookup 9255.5 Ops/sec
Map check 7679.4 Ops/sec
Object check(key in) non-secure 8076.5 Ops/sec
Object check using hasOwnProperty 7500.8 Ops/sec
Object check using hasOwnProperty secure implementation 3063.7 Ops/sec
Script Preparation code:
Tests:
  • Map insert

  • Obj insert

  • Map delete

  • Obj delete using delete

  • Extra: Object delete assimiling undefined

  • Map lookup

  • Object lookup

  • Map check

  • Object check(key in) non-secure

  • Object check using hasOwnProperty

  • Object check using hasOwnProperty secure implementation