Script Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Firefox 6 runs
Object.hasOwn
5K/s
Set.prototype.has
5K/s
View exact numbers
  • Object.hasOwn: 4,737 ops/sec
  • Set.prototype.has: 4,514 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.hasOwn
    Set.prototype.has

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.4 Safari/605.1.15
Safari 18 on Mac OS X 10.15.7
View result in a separate tab
Set.prototype.has
1.8M/s
Object.hasOwn
12K/s
View exact numbers
Test name Executions per second
Set.prototype.has 1,843,018 Ops/sec
Object.hasOwn 11,744 Ops/sec