Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array.slice(-1) vs Array.At(-1) Teste Pro Eduzeira
Array.slice(-1) vs Array.At(-1)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
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)
Browser:
Opera 112
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
array.at(-1);
221482864.0 Ops/sec
array.slice(-1);
65879152.0 Ops/sec
Script Preparation code:
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);