HTML Preparation code:
AخA
 
1
<script src=''></script>
Tests:
  • map

     
    const a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
    const b = a.map((x, i) => i !== 3 ? x : 99);
  • spread

     
    const a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
    const c = [...a];
    c[3] = 99;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    map
    spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Safari/605.1.15
Safari 13 on Mac OS X 10.15.3
View result in a separate tab
Test name Executions per second
map 5859015.0 Ops/sec
spread 19477002.0 Ops/sec