Script Preparation code:
AخA
 
var array = new Array(5000).fill('1').map(() => Math.random().toString());
Tests:
  • JSON.strigify

     
    JSON.stringify(array);
  • Array.join

     
    array.join(',')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    JSON.strigify
    Array.join

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Chrome 85 on Linux
View result in a separate tab
Test name Executions per second
JSON.strigify 3727.7 Ops/sec
Array.join 4173.7 Ops/sec