Script Preparation code:
x
 
fr = (a, ...b) => a.concat(b.map(String))
fa = (a,    b) => a.concat(b.map(String))
af = [1, 2, 3, 4, 5];
ae = [];
Tests:
  • Rest

     
    const r = fr([0], 1, 2, 3, 4, 5);
  • Array

     
    const r = fa([0], [1, 2, 3, 4, 5]);
  • Rest Empty

     
    const r = fr([0]);
  • Array Empty

     
    const r = fa([0], []);
  • Array Predefined

     
    const r = fa([0], af);
  • Array Empty Predefined

     
    const r = fa([0], ae);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Rest
    Array
    Rest Empty
    Array Empty
    Array Predefined
    Array Empty Predefined

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Safari/605.1.15
Safari 15 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Rest 3946815.0 Ops/sec
Array 3711217.5 Ops/sec
Rest Empty 5080134.5 Ops/sec
Array Empty 4930416.5 Ops/sec
Array Predefined 3038471.5 Ops/sec
Array Empty Predefined 4024380.0 Ops/sec