Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
multiplication vs parseInt vs Number vs bitwise
(version: 0)
Comparing performance of:
multiplication vs parseInt vs Number conversion vs double bitwise not vs bitwise or
Created:
4 years ago
by:
Guest
Jump to the latest result
Tests:
multiplication
const num = 10 * (10 ** 2) + 10
parseInt
const num = parseInt("10" + "10")
Number conversion
const num = Number("10" + "10")
double bitwise not
~~("10"+"10")
bitwise or
("10" + "10") | 0
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (5)
Previous results
Fork
Test case name
Result
multiplication
parseInt
Number conversion
double bitwise not
bitwise or
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!
Related benchmarks:
bitwise operator vs. boolean logic when using TypedArrays
parseInt() VS x.toFixed()
multiplication vs parseInt
multiplication vs parseInt vs Number vs bitwise vs unary
Comments
Confirm delete:
Do you really want to delete benchmark?