Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 Edg/94.0.992.50
Chrome 94
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
map from object.entries, for-of loop, destructured access 298154.6 Ops/sec
map from object.entries, for-of loop, bracket access 318151.2 Ops/sec
map from object.entries, forEach, unused key param 303332.4 Ops/sec
map from object.entries, forEach, no unused key param 303636.8 Ops/sec
object.entries, for-of loop, destructured access 537762.1 Ops/sec
object.entries, for-of loop, bracket access 492997.7 Ops/sec
object.entries, forEach, destructured access 527242.0 Ops/sec
object.entries, forEach, bracket access 483714.7 Ops/sec
object.keys, for-of loop, bracket access on original 1680786.9 Ops/sec
object.keys, forEach, bracket access on original 1535466.0 Ops/sec
object.values, for-of loop 3648510.2 Ops/sec
object.values, forEach 3304009.8 Ops/sec
for-in loop, bracket access on original 21952062.0 Ops/sec
Tests:
  • map from object.entries, for-of loop, destructured access

  • map from object.entries, for-of loop, bracket access

  • map from object.entries, forEach, unused key param

  • map from object.entries, forEach, no unused key param

  • object.entries, for-of loop, destructured access

  • object.entries, for-of loop, bracket access

  • object.entries, forEach, destructured access

  • object.entries, forEach, bracket access

  • object.keys, for-of loop, bracket access on original

  • object.keys, forEach, bracket access on original

  • object.values, for-of loop

  • object.values, forEach

  • for-in loop, bracket access on original


;