Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Windows
Desktop
one year ago
Test name Executions per second
lodash.forOwn 226.2 Ops/sec
Object.keys().forEach 227.7 Ops/sec
for..in 209.1 Ops/sec
lodash.forOwn (sub loop) 21.6 Ops/sec
Object.keys().forEach (sub loop) 18.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • lodash.forOwn

  • Object.keys().forEach

  • for..in

  • lodash.forOwn (looping subObj)

  • Object.keys().forEach (looping subObj)