public class VectorPerformance extends Object
Modifier and Type | Class and Description |
---|---|
static class |
VectorPerformance.NormalizableVectorInput1D
Vector input class producing
Vector1D instances capable of being normalized. |
static class |
VectorPerformance.NormalizableVectorInput2D
Vector input class producing
Vector2D instances capable of being normalized. |
static class |
VectorPerformance.NormalizableVectorInput3D
Vector input class producing
Vector3D instances capable of being normalized. |
static class |
VectorPerformance.VectorInput1D
Vector input class producing
Vector1D instances with random
double values. |
static class |
VectorPerformance.VectorInput2D
Vector input class producing
Vector2D instances with random
double values. |
static class |
VectorPerformance.VectorInput3D
Vector input class producing
Vector2D instances with random
double values. |
static class |
VectorPerformance.VectorInputBase<V extends Vector<V>>
Base class for vector inputs.
|
Constructor and Description |
---|
VectorPerformance() |
Modifier and Type | Method and Description |
---|---|
void |
baseline(VectorPerformance.VectorInput1D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing just the overhead of the benchmark harness.
|
void |
norm1D(VectorPerformance.VectorInput1D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector1D.norm() method. |
void |
norm2D(VectorPerformance.VectorInput2D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector2D.norm() method. |
void |
norm3D(VectorPerformance.VectorInput3D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector3D.norm() method. |
void |
normalize1D(VectorPerformance.NormalizableVectorInput1D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector1D.normalize() method. |
void |
normalize2D(VectorPerformance.NormalizableVectorInput2D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector2D.normalize()
method. |
void |
normalize3D(VectorPerformance.NormalizableVectorInput3D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector3D.normalize()
method. |
void |
normalizeOrNull1D(VectorPerformance.VectorInput1D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector1D.normalizeOrNull() method. |
void |
normalizeOrNull2D(VectorPerformance.VectorInput2D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector2D.normalizeOrNull()
method. |
void |
normalizeOrNull3D(VectorPerformance.VectorInput3D input,
org.openjdk.jmh.infra.Blackhole bh)
Benchmark testing the performance of the
Vector3D.normalizeOrNull()
method. |
public VectorPerformance()
public void baseline(VectorPerformance.VectorInput1D input, org.openjdk.jmh.infra.Blackhole bh)
input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void norm1D(VectorPerformance.VectorInput1D input, org.openjdk.jmh.infra.Blackhole bh)
Vector1D.norm()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void norm2D(VectorPerformance.VectorInput2D input, org.openjdk.jmh.infra.Blackhole bh)
Vector2D.norm()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void norm3D(VectorPerformance.VectorInput3D input, org.openjdk.jmh.infra.Blackhole bh)
Vector3D.norm()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void normalize1D(VectorPerformance.NormalizableVectorInput1D input, org.openjdk.jmh.infra.Blackhole bh)
Vector1D.normalize()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void normalizeOrNull1D(VectorPerformance.VectorInput1D input, org.openjdk.jmh.infra.Blackhole bh)
Vector1D.normalizeOrNull()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void normalize2D(VectorPerformance.NormalizableVectorInput2D input, org.openjdk.jmh.infra.Blackhole bh)
Vector2D.normalize()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void normalizeOrNull2D(VectorPerformance.VectorInput2D input, org.openjdk.jmh.infra.Blackhole bh)
Vector2D.normalizeOrNull()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void normalize3D(VectorPerformance.NormalizableVectorInput3D input, org.openjdk.jmh.infra.Blackhole bh)
Vector3D.normalize()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputpublic void normalizeOrNull3D(VectorPerformance.VectorInput3D input, org.openjdk.jmh.infra.Blackhole bh)
Vector3D.normalizeOrNull()
method.input
- benchmark state inputbh
- jmh blackhole for consuming outputCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.