Script Preparation code:
AخA
 
var arr = ['1',2,null,undefined,'5','6','7','8']
Tests:
  • join

     
    arr.join()
  • toString

     
    arr.toString()
  • json

     
    JSON.stringify(arr)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    join
    toString
    json

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 19 days ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Linux
View result in a separate tab
Test name Executions per second
join 3640645.5 Ops/sec
toString 3140322.5 Ops/sec
json 2803046.0 Ops/sec