Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82
Mac OS X 10.14
Desktop
4 years ago
Test name Executions per second
Object keys 6.1 Ops/sec
Array map 6.2 Ops/sec
Object keys (No console.log) 1373.7 Ops/sec
Array map (No console.log) 5084.6 Ops/sec
Script Preparation code:
Tests:
  • Object keys

  • Array map

  • Object keys (No console.log)

  • Array map (No console.log)