Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Windows 8.1
Desktop
4 years ago
Test name Executions per second
ES6 property (get) 143388512.0 Ops/sec
Getter function 166505856.0 Ops/sec
Directly get 166430032.0 Ops/sec
ES6 property (set) 325460704.0 Ops/sec
Setter function 326066464.0 Ops/sec
Directly set 376802592.0 Ops/sec
Script Preparation code:
Tests:
  • ES6 property (get)

  • Getter function

  • Directly get

  • ES6 property (set)

  • Setter function

  • Directly set


;