Class StickySumPerformance
- java.lang.Object
-
- org.apache.commons.numbers.examples.jmh.core.StickySumPerformance
-
- Direct Known Subclasses:
StickySumPerformance_jmhType_B1
public class StickySumPerformance extends Object
Executes a benchmark to measure the speed of operations in theLinearCombination
class. Benchmarks focus on the sticky summation of two double values.Details of the sticky bit can be found in:
Coonen, J.T., "An Implementation Guide to a Proposed Standard for Floating Point Arithmetic", Computer, Vol. 13, No. 1, Jan. 1980, pp 68-79.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StickySumPerformance.BiFactors
The factors to sum.static class
StickySumPerformance.SumMethod
The summation method.
-
Constructor Summary
Constructors Constructor Description StickySumPerformance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
stickySum(StickySumPerformance.BiFactors factors, org.openjdk.jmh.infra.Blackhole bh, StickySumPerformance.SumMethod method)
Benchmark the sticky summation of two numbers.
-
-
-
Method Detail
-
stickySum
public void stickySum(StickySumPerformance.BiFactors factors, org.openjdk.jmh.infra.Blackhole bh, StickySumPerformance.SumMethod method)
Benchmark the sticky summation of two numbers.- Parameters:
factors
- Factors.bh
- Data sink.method
- Summation method.
-
-