Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
branchlessoffsetbyarrayfunction
(version: 0)
smth
Comparing performance of:
branch vs branchless
Created:
4 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var array = [function(e) {return e ** 2}, function(e) {return e ^ e}]; function a(a, b, c) { if(a < b) { return array[0](c); } else return array[1](c); } function b(a, b, c) { return array[(b < a) * 1](c); }
Tests:
branch
a(10, 5, 100);
branchless
b(10, 5, 100)
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
branch
branchless
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:
branchlessoffsetbyarrayfunctionbutnot
Javascript array deducplication 2.02
Totara Learning Solutions JavaScript
Inline JS vs Single Function vs Function Composition
Comments
Confirm delete:
Do you really want to delete benchmark?