Script Preparation code:
AخA
 
const array = [1,2,3,4,5,6,7,8,9,10,11,12,13];
Tests:
  • array.at(-1);

     
    const array = [1,2,3,4,5,6,7,8,9,10,11,12,13];
    array.at(-1);
  • array.slice(-1);

     
    const array = [1,2,3,4,5,6,7,8,9,10,11,12,13];
    array.slice(-1);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array.at(-1);
    array.slice(-1);

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 OPR/112.0.0.0 (Edition Yx 05)
Opera 112 on Windows
View result in a separate tab
Test name Executions per second
array.at(-1); 221482864.0 Ops/sec
array.slice(-1); 65879152.0 Ops/sec