Plain vs Bigjs

Benchmark created on


Preparation HTML

<script src='https://cdn.jsdelivr.net/npm/big.js@6.2.2/big.min.js'></script>

Setup

const a = 100
const b = 20

Test runner

Ready to run.

Testing in
TestOps/sec
Plain
const c = a - Math.round(a/b,2)
ready
Big.js
const c = Big(a).minus(Big(a).div(b)).round(2).toNumber()
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.