Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
For In 17.8 Ops/sec
Object values 19.1 Ops/sec
Object keys forEach 20.1 Ops/sec
Object entries forEach 14.9 Ops/sec
object values forEach 21.0 Ops/sec
Object entries plus for loop 16.9 Ops/sec
Script Preparation code:
Tests:
  • For In

  • Object values

  • Object keys forEach

  • Object entries forEach

  • object values forEach

  • Object entries plus for loop


;