Run details:
Mozilla/5.0 (Linux; Android 10; CLT-L29 Build/HUAWEICLT-L29; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/88.0.4324.181 Mobile Safari/537.36 WEBVIEW TEST/1.2.2.84 (Phone; anonymous)
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
ES6 property (get) 2158658.8 Ops/sec
Getter function 2163008.0 Ops/sec
Directly get 2175308.2 Ops/sec
ES6 property (set) 4618169.0 Ops/sec
Setter function 4623071.0 Ops/sec
Directly set 4626923.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set