Number vs BigInt

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Number
/*for (let i = 1; i < 100; i++) {
	i + i
}*/
1 + 2
ready
BigInt
/*for (let i = 1n; i < 100n; i++) {
	i + i
}
*/
1n + 2n
ready

Revisions

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