Run details:
Mozilla/5.0 (Linux; Android 10; CPH2135) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.115 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
ES6 property (get) 1211865.2 Ops/sec
Getter function 1212551.9 Ops/sec
Directly get 1215578.8 Ops/sec
ES6 property (set) 2733423.2 Ops/sec
Setter function 2740198.0 Ops/sec
Directly set 2744070.2 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set