Package de.gsi.dataset.samples
Class FloatToDoubleBenchmarkSample
- java.lang.Object
-
- de.gsi.dataset.samples.FloatToDoubleBenchmarkSample
-
public class FloatToDoubleBenchmarkSample extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected de.gsi.dataset.spi.DoubleDataSetdataSet1protected DoubleDataSetdataSet2protected de.gsi.dataset.spi.FloatDataSetdataSet3protected double[]doubleArrayprotected it.unimi.dsi.fastutil.doubles.DoubleArrayListdoubleArrayListprotected java.util.ArrayList<java.lang.Double>doubleListprotected double[][]matrixDprotected float[][]matrixFprotected double[]vectorInDprotected float[]vectorInFprotected double[]vectorOutDprotected float[]vectorOutF
-
Constructor Summary
Constructors Constructor Description FloatToDoubleBenchmarkSample()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)voidtestDoubleArrayList1(int nIterations)voidtestDoubleArrayList2(int nIterations)voidtestDoubleArrayPlain(int nIterations)voidtestDoubleDataSetNew1(int nIterations, boolean lock)voidtestDoubleDataSetNew2(int nIterations, boolean lock)voidtestDoubleDataSetOld1(int nIterations, boolean lock)voidtestDoubleDataSetOld2(int nIterations, boolean lock)voidtestDoubleListNative(int nIterations)voidtestFloatDataSetNew1(int nIterations, boolean lock)voidtestFloatDataSetNew2(int nIterations, boolean lock)voidtestMatrixVectorMultiplicationDouble(int nIterations)voidtestMatrixVectorMultiplicationFloat(int nIterations)
-
-
-
Field Detail
-
matrixD
protected double[][] matrixD
-
matrixF
protected float[][] matrixF
-
vectorInD
protected double[] vectorInD
-
vectorInF
protected float[] vectorInF
-
vectorOutD
protected double[] vectorOutD
-
vectorOutF
protected float[] vectorOutF
-
doubleList
protected java.util.ArrayList<java.lang.Double> doubleList
-
doubleArrayList
protected it.unimi.dsi.fastutil.doubles.DoubleArrayList doubleArrayList
-
doubleArray
protected double[] doubleArray
-
dataSet1
protected de.gsi.dataset.spi.DoubleDataSet dataSet1
-
dataSet2
protected DoubleDataSet dataSet2
-
dataSet3
protected de.gsi.dataset.spi.FloatDataSet dataSet3
-
-
Method Detail
-
testDoubleArrayList1
public void testDoubleArrayList1(int nIterations)
-
testDoubleArrayList2
public void testDoubleArrayList2(int nIterations)
-
testDoubleArrayPlain
public void testDoubleArrayPlain(int nIterations)
-
testDoubleDataSetNew1
public void testDoubleDataSetNew1(int nIterations, boolean lock)
-
testDoubleDataSetNew2
public void testDoubleDataSetNew2(int nIterations, boolean lock)
-
testDoubleDataSetOld1
public void testDoubleDataSetOld1(int nIterations, boolean lock)
-
testDoubleDataSetOld2
public void testDoubleDataSetOld2(int nIterations, boolean lock)
-
testDoubleListNative
public void testDoubleListNative(int nIterations)
-
testFloatDataSetNew1
public void testFloatDataSetNew1(int nIterations, boolean lock)
-
testFloatDataSetNew2
public void testFloatDataSetNew2(int nIterations, boolean lock)
-
testMatrixVectorMultiplicationDouble
public void testMatrixVectorMultiplicationDouble(int nIterations)
-
testMatrixVectorMultiplicationFloat
public void testMatrixVectorMultiplicationFloat(int nIterations)
-
main
public static void main(java.lang.String[] args)
-
-