Class LinearCombinationPerformance
- java.lang.Object
-
- org.apache.commons.numbers.examples.jmh.core.LinearCombinationPerformance
-
- Direct Known Subclasses:
LinearCombinationPerformance_jmhType_B1
public class LinearCombinationPerformance extends Object
Executes a benchmark to measure the speed of operations in theLinearCombinationclass.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLinearCombinationPerformance.CalculatorTheLinearCombinationimplementation.static classLinearCombinationPerformance.FactorsThe factors to multiply.static classLinearCombinationPerformance.LengthFactorsThe factors to multiply of a specific length.
-
Constructor Summary
Constructors Constructor Description LinearCombinationPerformance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfourD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)Compute the 4D scalar product for all the factors.voidnD(LinearCombinationPerformance.LengthFactors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)Compute the ND scalar product for all the factors.voidthreeD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)Compute the 3D scalar product for all the factors.voidtwoD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)Compute the 2D scalar product for all the factors.
-
-
-
Method Detail
-
twoD
public void twoD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 2D scalar product for all the factors.- Parameters:
factors- Factors.bh- Data sink.calc- Scalar product calculator.
-
threeD
public void threeD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 3D scalar product for all the factors.- Parameters:
factors- Factors.bh- Data sink.calc- Scalar product calculator.
-
fourD
public void fourD(LinearCombinationPerformance.Factors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the 4D scalar product for all the factors.- Parameters:
factors- Factors.bh- Data sink.calc- Scalar product calculator.
-
nD
public void nD(LinearCombinationPerformance.LengthFactors factors, org.openjdk.jmh.infra.Blackhole bh, LinearCombinationPerformance.Calculator calc)
Compute the ND scalar product for all the factors.- Parameters:
factors- Factors.bh- Data sink.calc- Scalar product calculator.
-
-