Script Preparation code:
Tests:
  • Object.hasOwnProperty

  • Object in

  • Array.indexOf

  • direct

  • Array find

  • Map has

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.hasOwnProperty
    Object in
    Array.indexOf
    direct
    Array find
    Map has

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:123.0) Gecko/20100101 Firefox/123.0
Firefox 123 on Linux
View result in a separate tab
Test name Executions per second
Object.hasOwnProperty 945507600.0 Ops/sec
Object in 891083400.0 Ops/sec
Array.indexOf 8324756.0 Ops/sec
direct 941446300.0 Ops/sec
Array find 45489.6 Ops/sec
Map has 790937100.0 Ops/sec