Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
mapValues (every item uniq) 1166.5 Ops/sec
for loop (every item uniq) 4493.1 Ops/sec
mapValues (all items same) 2140.3 Ops/sec
for loop (all items same) 1468.6 Ops/sec
HTML Preparation code:
Tests:
  • mapValues (every item uniq)

  • for loop (every item uniq)

  • mapValues (all items same)

  • for loop (all items same)