Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
parseInt vs Number BigInts
(version: 0)
Comparing performance of:
parseInt vs Number
Created:
3 years ago
by:
Guest
Go to the latest result
Script Preparation code:
var num = BigInt(Number.MAX_SAFE_INTEGER) + 10n;
Tests:
parseInt
var res = parseInt(num, 10);
Number
var res = Number(num);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
parseInt
Number
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
6 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15
Browser/OS:
Safari 18 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Number
109.4M/s
parseInt
7.4M/s
View exact numbers
Test name
Executions per second
✓
Number
109,443,568 Ops/sec
parseInt
7,356,906 Ops/sec
Related benchmarks
BigInt vs ParseInt
JS BigInt big number performance vx4
Comments
Confirm delete:
Do you really want to delete benchmark?