Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Int Math.max compare v2
(version: 0)
Comparing performance of:
noParse vs ~~ vs int vs int&str
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var strA = "1688805315905"; var strB = "1688805315906"; var intA = 1688805315905; var intB = 1688805315906;
Tests:
noParse
var res = Math.max(strB, strA, 100);
~~
var res = Math.max(~~strB, ~~strA, 100);
int
var res = Math.max(intA, intB, 100);
int&str
var res = Math.max(intA, strB, 100);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (4)
Previous results
Fork
Test case name
Result
noParse
~~
int
int&str
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
JS BigInt big number performance vx
JS BigInt big number performance vx4
Int Math.max compare
x.y Math.max compare
Comments
Confirm delete:
Do you really want to delete benchmark?