HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Firefox 8 runs
Reduce
8.6M/s
Reduce but with optimized parameters
311K/s
Join only valid strings
163K/s
Reduce but no template string
152K/s
Filter and join
92K/s
Join and replace false
88K/s

Fastest: Reduce (97.4x faster)

View exact numbers
  • Reduce: 8,582,938 ops/sec
  • Reduce but with optimized parameters: 311,479 ops/sec
  • Join only valid strings: 163,035 ops/sec
  • Reduce but no template string: 151,851 ops/sec
  • Filter and join: 91,683 ops/sec
  • Join and replace false: 88,111 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

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
Reduce but with optimized parameters
690K/s
Reduce but no template string
392K/s
Reduce but no leading space 2
327K/s
Reduce
309K/s
Reduce but no leading space
307K/s
Filter and reduce
201K/s
Push valid to array and join
129K/s
Join only valid strings
124K/s
Filter and join
117K/s
Join and replace false
79K/s
View exact numbers
Test name Executions per second
Reduce but with optimized parameters 689,849 Ops/sec
Reduce but no template string 392,298 Ops/sec
Reduce but no leading space 2 326,627 Ops/sec
Reduce 309,222 Ops/sec
Reduce but no leading space 307,326 Ops/sec
Filter and reduce 201,246 Ops/sec
Push valid to array and join 129,384 Ops/sec
Join only valid strings 123,683 Ops/sec
Filter and join 116,750 Ops/sec
Join and replace false 78,562 Ops/sec