Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Native Number vs Lodash toNumber
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:140.0) Gecko/20100101 Firefox/140.0
Browser:
Firefox 140
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
one year ago
Native
1817.8M/s
Lodash
17.2M/s
View exact numbers
Test name
Executions per second
✓
Native
1,817,797,120 Ops/sec
Lodash
17,165,534 Ops/sec
HTML Preparation code:
<script src='https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js'></script>
Script Preparation code:
var strNum = '123';
Tests:
Native
Number(strNum)
Lodash
_.toNumber(strNum)