Class DoubleSplitPerformance
- java.lang.Object
-
- org.apache.commons.numbers.examples.jmh.core.DoubleSplitPerformance
-
- Direct Known Subclasses:
DoubleSplitPerformance_jmhType_B1
public class DoubleSplitPerformance extends Object
Executes a benchmark to measure the speed of operations in theLinearCombination
class. Benchmarks focus on the split of a double value into high and low parts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DoubleSplitPerformance.BiFactors
The factors to multiply.static class
DoubleSplitPerformance.NonNormalMethod
The method to test for a non-normal number.static class
DoubleSplitPerformance.NonNormalNumbers
The numbers to test to determine if they are not normal.static class
DoubleSplitPerformance.Numbers
The numbers to split.static class
DoubleSplitPerformance.RoundoffMethod
The method to compute the product round-off.static class
DoubleSplitPerformance.SplitMethod
The split method.
-
Constructor Summary
Constructors Constructor Description DoubleSplitPerformance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
high(DoubleSplitPerformance.Numbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.SplitMethod method)
Benchmark extracting the high part of the split number.void
low(DoubleSplitPerformance.Numbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.SplitMethod method)
Benchmark extracting the low part of the split number.void
nonNormal(DoubleSplitPerformance.NonNormalNumbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.NonNormalMethod method)
Benchmark testing if a number is non-normal.void
productLow(DoubleSplitPerformance.BiFactors factors, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.RoundoffMethod method)
Benchmark extracting the round-off from the product of two numbers.
-
-
-
Method Detail
-
high
public void high(DoubleSplitPerformance.Numbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.SplitMethod method)
Benchmark extracting the high part of the split number.- Parameters:
numbers
- Factors.bh
- Data sink.method
- Split method
-
low
public void low(DoubleSplitPerformance.Numbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.SplitMethod method)
Benchmark extracting the low part of the split number.- Parameters:
numbers
- Factors.bh
- Data sink.method
- Split method.
-
nonNormal
public void nonNormal(DoubleSplitPerformance.NonNormalNumbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.NonNormalMethod method)
Benchmark testing if a number is non-normal.- Parameters:
numbers
- Factors.bh
- Data sink.method
- Split method.
-
productLow
public void productLow(DoubleSplitPerformance.BiFactors factors, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.RoundoffMethod method)
Benchmark extracting the round-off from the product of two numbers.- Parameters:
factors
- Factors.bh
- Data sink.method
- Round-off method.
-
-