Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
number-precision.js vs. big.js
number-precision.js vs. big.js
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Browser:
Chrome 131
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Benchmark engine:
Benchmark.js
Native
98.1M/s
big.js
3.6M/s
number-precision
656K/s
View exact numbers
Test name
Executions per second
✓
Native
98,074,424 Ops/sec
big.js
3,559,847 Ops/sec
number-precision
656,445 Ops/sec
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/number-precision@1.6.0/build/index.iife.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/big.js/6.0.3/big.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/big.js/6.0.3/big.min.js"></script>
Tests:
Native
var a = 0.1; var b = 0.2; ((a + b) * b).toString();
number-precision
var a = 0.1; var b = 0.2; const c = NP.plus(a, b) const d = NP.times(c, b) c.toString()
big.js
var a = new Big("0.1"); var b = new Big("0.2"); a.plus(b).mul(b).toString();