Script Preparation code:
x
 
function generateRandomNumbers(m) {
  const array = new Uint32Array(m);
  window.crypto.getRandomValues(array);
  return array;
}
function generateRandomArrays(n, m) {
  const array = [];
  for (let i = 0; i < n; i++) {
    array.push(generateRandomNumbers(m))
  }
  return array;
}
var array = generateRandomArrays(1e3, 1e2);
Tests:
  • Array.prototype.concat

     
    b = array.reduce((accumulator, value) => accumulator.concat(value));
  • Spead

     
    b = array.reduce((accumulator, value) => [...accumulator, ...value])
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.concat
    Spead

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Chrome 69 on Mac OS X 10.14.0
View result in a separate tab
Test name Executions per second
Array.prototype.concat 0.0 Ops/sec
Spead 0.7 Ops/sec