Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
JS BigInt big number performance v2
Compare Number vs BigInt for big numbers
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPad; CPU OS 17_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/120.0.6099.101 Mobile/15E148 Safari/604.1
Browser:
Chrome Mobile iOS 120
Operating system:
iOS 17.1
Device Platform:
Tablet
Date tested:
2 years ago
Test name
Executions per second
BigInt
374898.8 Ops/sec
Number
524558.5 Ops/sec
Script Preparation code:
var bigInt1 = 1000000n var bigInt2 = 50n var number1 = 1000000 var number2 = 50
Tests:
BigInt
a = bigInt1 b = bigInt2 c = a - b c = a % b c = a * b c = a + b c = a ** b
Number
a = number1 b = number2 c = a - b c = a % b c = a * b c = a + b c = a ** b