Number vs BigInt (v2)

Revision 2 of this benchmark created on


Setup

let a = 100
let b = 250
let an = 100n
let bn = 250n

Test runner

Ready to run.

Testing in
TestOps/sec
Number
let c = a + b
let d = a * b
let e = a / b
ready
BitInt
let c = an + bn
let d = an * bn
let e = an / bn
ready
BigInt Clamped
let c = BigInt.asIntN(64, an + bn)
let d = BigInt.asIntN(64, an * bn)
let e = BigInt.asIntN(64, an / bn)
ready

Revisions

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