Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138
Mac OS X 10.15
Desktop
17 hours ago
Test name Executions per second
Reduce 21819172.0 Ops/sec
Filter and join 9634376.0 Ops/sec
Join and replace false 9483193.0 Ops/sec
Join only valid strings 15140668.0 Ops/sec
Reduce but no template string 17219048.0 Ops/sec
No helper function at all 209410832.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Reduce

  • Filter and join

  • Join and replace false

  • Join only valid strings

  • Reduce but no template string

  • Reduce but with optimized parameters

  • Push valid to array and join

  • Filter and reduce

  • Reduce but no leading space

  • Reduce but no leading space 2