Run details:
Mozilla/5.0 (Linux; Android 10; YAL-L41) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
one year ago
Test name Executions per second
ES6 property (get) 3408497.5 Ops/sec
Getter function 3350216.8 Ops/sec
Directly get 3375595.2 Ops/sec
ES6 property (set) 7781096.5 Ops/sec
Setter function 7769046.5 Ops/sec
Directly set 7783857.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set