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
15 hours ago
Test name Executions per second
Reduce 188978.6 Ops/sec
Filter and join 85603.6 Ops/sec
Join and replace false 83027.1 Ops/sec
Join only valid strings 150247.5 Ops/sec
Reduce but no template string 145580.8 Ops/sec
Reduce but with optimized parameters 287495.2 Ops/sec
Push valid to array and join 92243.7 Ops/sec
Filter and reduce 90224.9 Ops/sec
Reduce but no leading space 148840.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