Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
Object Literal
155.1M/s
ES6 Class
874K/s
Function Prototype
804K/s

Fastest: Object Literal (192.9x faster)

View exact numbers
  • Object Literal: 155,098,064 ops/sec
  • ES6 Class: 874,401 ops/sec
  • Function Prototype: 804,091 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
    ES6 Class
    Function Prototype
    Object Literal

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.4 Safari/605.1.15
Safari 26 on Mac OS X 10.15.7
View result in a separate tab
Object Literal
95.0M/s
Function Prototype
5.4M/s
ES6 Class
4.5M/s
View exact numbers
Test name Executions per second
Object Literal 94,969,264 Ops/sec
Function Prototype 5,422,992 Ops/sec
ES6 Class 4,515,448 Ops/sec