Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 5 runs
ES6 Class
18K/s
Function Prototype
15K/s
Object Literal
7K/s

Fastest: ES6 Class (2.7x faster)

View exact numbers
  • ES6 Class: 18,437 ops/sec
  • Function Prototype: 14,680 ops/sec
  • Object Literal: 6,765 ops/sec
Firefox 5 runs
ES6 Class
10K/s
Function Prototype
9K/s
Object Literal
4K/s

Fastest: ES6 Class (2.5x faster)

View exact numbers
  • ES6 Class: 10,336 ops/sec
  • Function Prototype: 8,675 ops/sec
  • Object Literal: 4,068 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: 8 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 Edg/152.0.0.0
Chrome 152 on Windows
View result in a separate tab
Function Prototype
7K/s
ES6 Class
7K/s
Object Literal
5K/s
View exact numbers
Test name Executions per second
Function Prototype 6,608 Ops/sec
ES6 Class 6,534 Ops/sec
Object Literal 4,626 Ops/sec