Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Native Array at vs Native Array length - 1 vs Lodash at
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:129.0) Gecko/20100101 Firefox/129.0
Browser:
Firefox 129
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Native At
2123588608.0 Ops/sec
Lodash last
1067807040.0 Ops/sec
Native length - 1
31976566.0 Ops/sec
HTML Preparation code:
https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js
Script Preparation code:
var max1 = 100000; // 100,000 (100 Thousand) var max2 = 10000000; // 10,000,000 (10 Million) var max3 = 100000000; // 100,000,000 (100 Million) var arr1 = []; for (var i = 0; i <= max2; i++) { arr2.push(i); }
Tests:
Native At
arr1.at(-1)
Lodash last
_.last(arr1)
Native length - 1
arr1[arr1.length - 1]