Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36
Chrome Mobile 120
Android
Mobile
one year ago
Test name Executions per second
.map(callback) - 1 000 elements 295641.6 Ops/sec
.fill(value) - 1 000 elements 315816.5 Ops/sec
.map(callback) - 10 000 elements 24618.8 Ops/sec
.fill(value) - 10 000 elements 36702.0 Ops/sec
.map(callback) - 100 000 elements 1008.9 Ops/sec
.fill(value) - 100 000 elements 1808.1 Ops/sec
Script Preparation code:
Tests:
  • .map(callback) - 1 000 elements

  • .fill(value) - 1 000 elements

  • .map(callback) - 10 000 elements

  • .fill(value) - 10 000 elements

  • .map(callback) - 100 000 elements

  • .fill(value) - 100 000 elements