Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
integer vs decimal
(version: 1)
- https://github.com/MikeMcl/bignumber.js/tree/v9.0.0 - https://github.com/MikeMcl/big.js/tree/v5.2.2 - https://github.com/MikeMcl/decimal.js/tree/v10.2.0
Comparing performance of:
Integer vs decimal
Created:
one year ago
by:
Registered User
Go to the latest result
HTML Preparation code:
<script src="https://cdnjs.cloudflare.com/ajax/libs/decimal.js/10.2.1/decimal.min.js"></script>
Tests:
Integer
var a = 100000; var b = 213231423; (a/b).toString();
decimal
var a = 0.0001; var b = 213.231423; (a/b).toString();
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Integer
decimal
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
Browser/OS:
Firefox 135 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
decimal
2786.3M/s
Integer
2778.6M/s
View exact numbers
Test name
Executions per second
✓
decimal
2,786,341,632 Ops/sec
Integer
2,778,611,200 Ops/sec
Related benchmarks
bignumber.js vs. big.js vs. decimal.js (I) toFixed(9)
bignumber.js vs. big.js vs. decimal.js (no to string)
bigint vs. bignumber.js vs. big.js vs. decimal.js with exponentiation2
bigint vs. bignumber.js vs. big.js vs. decimal.js with exponentiation3
bigint vs. bignumber.js vs. big.js vs. decimal.js with exponentiation4
bignumber.js vs. big.js vs. decimal.js in 2024-05-03
Comments
Confirm delete:
Do you really want to delete benchmark?