Script Preparation code:
x
 
var strTxt = "@".repeat(256*1000);
var avg = [],len = 256;
Tests:
  • testttttt

     
    var ar = [];
    ar = strTxt.match(new RegExp('.{1,'+len+'}/g'));
  • tesstttt2

     
    var ar = [];
    for(i=0,y=0;i<Math.ceil(strTxt.length/len);i++,y=i*len){
        ar[i] = strTxt.slice(y,y+len);
        
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    testttttt
    tesstttt2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36
Chrome 85 on Windows 7
View result in a separate tab
Test name Executions per second
testttttt 4.1 Ops/sec
tesstttt2 720.1 Ops/sec