Script Preparation code:
Tests:
  • Map lookup

  • Obj lookup

  • Map set

  • Obj set

  • hasOwnProperty

  • has

  • delete

  • remove

  • array lookup

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Map lookup
    Obj lookup
    Map set
    Obj set
    hasOwnProperty
    has
    delete
    remove
    array lookup

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
Map lookup 11828718.0 Ops/sec
Obj lookup 11614973.0 Ops/sec
Map set 1506301.5 Ops/sec
Obj set 2643046.2 Ops/sec
hasOwnProperty 11202681.0 Ops/sec
has 11518602.0 Ops/sec
delete 2406205.5 Ops/sec
remove 1833536.1 Ops/sec
array lookup 11589077.0 Ops/sec