Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
math.abs vs branchless absolute val2
(version: 1)
Comparing performance of:
branchless vs native
Created:
one month ago
by:
Guest
Go to the latest result
Script Preparation code:
eval(""); var abs = Math.abs, x = -2131.1283712;
Tests:
branchless
eval(""); return x < 0 ? (~x) + 1 : x;
native
eval(""); return abs(x);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
branchless
native
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one month ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36 Edg/149.0.0.0
Browser/OS:
Chrome 149 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
branchless
16.0M/s
native
15.0M/s
View exact numbers
Test name
Executions per second
✓
branchless
16,031,760 Ops/sec
native
14,974,696 Ops/sec
Related benchmarks
math.abs vs branchless absolute val
hypotvssqrtpower
fast absolute value (branched & branchless) vs abs vs ** -1
math.abs vs branchless absolute val 2
hypot vs. sqrt
math.abs vs branchless absolute val3
Comments
Confirm delete:
Do you really want to delete benchmark?