Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
bigint 64 vs number
(version: 1)
bigint vs number, 52 bits
Comparing performance of:
BigInt 64 vs Number
Created:
9 months ago
by:
Guest
Jump to the latest result
Script Preparation code:
var resBigInt = BigInt.asIntN(64, 1n) var resNumber = 1
Tests:
BigInt 64
for (let i = 0; i < 52; i++) { resBigInt = BigInt.asIntN(64, BigInt.asIntN(64, resBigInt * 2n) + 1n) }
Number
for (let i = 0; i < 52; i++) { resNumber = resNumber * 2 + 1 }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
BigInt 64
Number
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
9 months ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0
Browser/OS:
Firefox 142 on Mac OS X 10.15
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
BigInt 64
1176451.6 Ops/sec
Number
3962038.0 Ops/sec
Related benchmarks:
number vs bigint left shift
BigInt to nu
JS BigInt big number performance v8
Tyepof vs isFinite
BigInt boolean operations
bigint vs number
Tyepof vs isFinite vs Number.isFinite
JS BigInt big number performance assignment
loop vs some 3214 1234 1234
Comments
Confirm delete:
Do you really want to delete benchmark?