Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
parseInt vs Number addition 2
(version: 1)
Comparing performance of:
No conversion vs parseInt vs Number
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var intA = 42.034; var strB = "42.034";
Tests:
No conversion
var res = intA + strB;
parseInt
var res = intA + parseInt(strB);
Number
var res = intA + Number(strB);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
No conversion
parseInt
Number
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?