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 217432.0 Ops/sec
Filter and join 94560.6 Ops/sec
Join and replace false 88116.0 Ops/sec
Join only valid strings 156994.0 Ops/sec
Reduce but no template string 152461.3 Ops/sec
Reduce but with optimized parameters 312997.6 Ops/sec
Push valid to array and join 132166.5 Ops/sec
Filter and reduce 95545.2 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