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 theLinearCombinationclass. 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 classDoubleSplitPerformance.BiFactorsThe factors to multiply.static classDoubleSplitPerformance.NonNormalMethodThe method to test for a non-normal number.static classDoubleSplitPerformance.NonNormalNumbersThe numbers to test to determine if they are not normal.static classDoubleSplitPerformance.NumbersThe numbers to split.static classDoubleSplitPerformance.RoundoffMethodThe method to compute the product round-off.static classDoubleSplitPerformance.SplitMethodThe split method.
-
Constructor Summary
Constructors Constructor Description DoubleSplitPerformance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhigh(DoubleSplitPerformance.Numbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.SplitMethod method)Benchmark extracting the high part of the split number.voidlow(DoubleSplitPerformance.Numbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.SplitMethod method)Benchmark extracting the low part of the split number.voidnonNormal(DoubleSplitPerformance.NonNormalNumbers numbers, org.openjdk.jmh.infra.Blackhole bh, DoubleSplitPerformance.NonNormalMethod method)Benchmark testing if a number is non-normal.voidproductLow(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.
-
-