Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Multiply using Decimal.js vs Multiply using native numbers vs exactMath
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Browser:
Chrome 133
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Multiply using Decimal.js
896846.2 Ops/sec
Multiply using native numbers
83050800.0 Ops/sec
exactMath
19374.8 Ops/sec
HTML Preparation code:
<script src='https://cdn.jsdelivr.net/npm/decimal.js-light@2.5.0/decimal.min.js'></script> <script src='https://cdn.jsdelivr.net/npm/exact-math@2.2.3/dist/exact-math.js'></script>
Script Preparation code:
var x = 5.236;
Tests:
Multiply using Decimal.js
Decimal('0.00253452345').times(x)
Multiply using native numbers
0.00253452345 * x
exactMath
exactMath.div('0.00253452345', x);