Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
BigInt(a + b) vs BigInt(a) + BigInt(b)
(version: 1)
Comparing performance of:
BigInt(a + b) vs BigInt(a) + BigInt(b)
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
let a = 10 let b = 20
Tests:
BigInt(a + b)
BigInt(a + b)
BigInt(a) + BigInt(b)
BigInt(a) + BigInt(b)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
BigInt(a + b)
BigInt(a) + BigInt(b)
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Browser/OS:
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
BigInt(a + b)
4054619.8 Ops/sec
BigInt(a) + BigInt(b)
2455548.2 Ops/sec
Related benchmarks:
`a += b` vs `a = a + b`
JS BigInt multiply vs addition
number vs bigint add
asdffds
BigInt parseInt vs Number
bigint vs number increment
++i vs i++
++i vs i++ v.2
BigInt interpolation vs toString
Comments
Confirm delete:
Do you really want to delete benchmark?