Run details:
Mozilla/5.0 (iPad; CPU OS 15_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/116.0.5845.118 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 116
iOS 15.7
Tablet
one year ago
Test name Executions per second
ES6 property (get) 1880313.4 Ops/sec
Getter function 1886219.0 Ops/sec
Directly get 1894927.2 Ops/sec
ES6 property (set) 4182744.5 Ops/sec
Setter function 4209401.5 Ops/sec
Directly set 4251646.5 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set