Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/116.0 Firefox/116.0
Firefox Mobile 116
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 335587616.0 Ops/sec
Getter function 345373600.0 Ops/sec
Directly get 371186272.0 Ops/sec
ES6 property (set) 419738656.0 Ops/sec
Setter function 423028672.0 Ops/sec
Directly set 427394880.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set