HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
forOfMeanBy
543/s
whileMeanBy
490/s
forLoopMeanBy
464/s
forEachMeanBy
238/s
lodashMeanBy
144/s
reduceMeanBy
110/s

Fastest: forOfMeanBy (5.0x faster)

View exact numbers
  • forOfMeanBy: 543 ops/sec
  • whileMeanBy: 490 ops/sec
  • forLoopMeanBy: 464 ops/sec
  • forEachMeanBy: 238 ops/sec
  • lodashMeanBy: 144 ops/sec
  • reduceMeanBy: 110 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    reduceMeanBy
    lodashMeanBy
    forLoopMeanBy
    forOfMeanBy
    whileMeanBy
    forEachMeanBy

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
forOfMeanBy
562/s
forLoopMeanBy
500/s
whileMeanBy
490/s
forEachMeanBy
239/s
lodashMeanBy
144/s
reduceMeanBy
115/s
View exact numbers
Test name Executions per second
forOfMeanBy 562 Ops/sec
forLoopMeanBy 500 Ops/sec
whileMeanBy 490 Ops/sec
forEachMeanBy 239 Ops/sec
lodashMeanBy 144 Ops/sec
reduceMeanBy 115 Ops/sec