Run details:
Mozilla/5.0 (Linux; Android 10; Redmi 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36
Chrome Mobile 111
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 797319.7 Ops/sec
Getter function 812118.5 Ops/sec
Directly get 825446.8 Ops/sec
ES6 property (set) 1845538.8 Ops/sec
Setter function 1800277.8 Ops/sec
Directly set 1790268.8 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;