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: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Reduce 309222.0 Ops/sec
Filter and join 116749.7 Ops/sec
Join and replace false 78562.0 Ops/sec
Join only valid strings 123683.3 Ops/sec
Reduce but no template string 392297.7 Ops/sec
Reduce but with optimized parameters 689848.9 Ops/sec
Push valid to array and join 129383.7 Ops/sec
Filter and reduce 201246.3 Ops/sec
Reduce but no leading space 307326.1 Ops/sec
Reduce but no leading space 2 326627.1 Ops/sec