Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
Functional
170.7M/s
Function Prototype
162.6M/s
ES6 Class
114.3M/s
Object Literal
2.2M/s

Fastest: Functional (75.9x faster)

View exact numbers
  • Functional: 170,659,232 ops/sec
  • Function Prototype: 162,627,904 ops/sec
  • ES6 Class: 114,285,536 ops/sec
  • Object Literal: 2,247,652 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
    Functional

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142 on Windows
View result in a separate tab
Function Prototype
209.6M/s
Functional
192.0M/s
ES6 Class
145.0M/s
Object Literal
2.6M/s
View exact numbers
Test name Executions per second
Function Prototype 209,620,464 Ops/sec
Functional 191,990,464 Ops/sec
ES6 Class 144,972,544 Ops/sec
Object Literal 2,647,418 Ops/sec