Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Windows
Desktop
2 years ago
Test name Executions per second
Object keys 33.7 Ops/sec
Array map 35.7 Ops/sec
Object keys (No console.log) 1406.2 Ops/sec
Array map (No console.log) 35015.9 Ops/sec
Script Preparation code:
Tests:
  • Object keys

  • Array map

  • Object keys (No console.log)

  • Array map (No console.log)