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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 hours ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:138.0) Gecko/20100101 Firefox/138.0
Firefox 138 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Reduce 192728.0 Ops/sec
Filter and join 86013.7 Ops/sec
Join and replace false 84137.9 Ops/sec
Join only valid strings 153744.8 Ops/sec
Reduce but no template string 147800.0 Ops/sec
Reduce but with optimized parameters 282750.8 Ops/sec
Push valid to array and join 90827.7 Ops/sec
Filter and reduce 88922.9 Ops/sec
Reduce but no leading space 152753.2 Ops/sec
Reduce but no leading space 2 150806.3 Ops/sec