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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0
Browser:
Chrome 130
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
Multiply using Decimal.js
914247.2 Ops/sec
Multiply using native numbers
9321218.0 Ops/sec
exactMath
37199.1 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);