Script Preparation code:
AخA
 
function moreData(arr, left) {
  if(left === 0) return arr;
  else {
    arr.push("Lorem ipsum dolor sit amet, consectetur adipiscing");
    return moreData(arr, left - 1);
  }
}
function makeTestData() { return moreData([], 40); }
Tests:
  • join

     
    makeTestData().join('-')
  • JSON.stringify

     
    JSON.stringify(makeTestData());
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    join
    JSON.stringify

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Windows
View result in a separate tab
Test name Executions per second
join 679954.2 Ops/sec
JSON.stringify 256216.4 Ops/sec