Script Preparation code:
AخA
 
var arr = ['123', undefined, false, 'abc', 0, 'flex', 'flex-row', 0, 'items-center justify-center', undefined, undefined, false];
Tests:
  • stringify

     
    JSON.stringify(arr)
  • join

     
    arr.filter(Boolean).join(' ')
  • toString

     
    arr.toString()
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    stringify
    join
    toString

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
stringify 2061854.9 Ops/sec
join 1909383.8 Ops/sec
toString 2511506.5 Ops/sec