public class Benchmark extends Object
| Constructor and Description |
|---|
Benchmark() |
| Modifier and Type | Method and Description |
|---|---|
static void |
benchmarkArithmeticAdd()
Benchmarks addition operation.
|
static void |
benchmarkByteLargeArray()
Benchmarks ByteLargeArray.
|
static void |
benchmarkByteLargeArrayInANewThread()
Benchmarks ByteLargeArray in a separate thread.
|
static void |
benchmarkByteLargeArrayNative()
Benchmarks ByteLargeArray using native memory.
|
static void |
benchmarkByteLargeArrayNativeInANewThread()
Benchmarks ByteLargeArray in a separate thread using native memory.
|
static void |
benchmarkByteRandom(long[] sizes,
int[] nthreads,
int iters,
String directory)
Runs benchmarkJavaArraysByteRandom and benchmarkJLargeArraysByteRandom methods.
|
static void |
benchmarkByteSequential(long[] sizes,
int[] nthreads,
int iters,
String directory)
Runs benchmarkJavaArraysByteSequential and benchmarkJLargeArraysByteSequentual methods.
|
static void |
benchmarkDoubleRandom(long[] sizes,
int[] nthreads,
int iters,
String directory)
Runs benchmarkJavaArraysDoubleRandom and benchmarkJLargeArraysDoubleRandom methods.
|
static void |
benchmarkDoubleSequential(long[] sizes,
int[] nthreads,
int iters,
String directory)
Runs benchmarkJavaArraysDoubleSequential and benchmarkJLargeArraysDoubleSequentual methods.
|
static void |
benchmarkFloatLargeArray()
Benchmarks FloatLargeArray.
|
static void |
benchmarkFloatLargeArrayInANewThread()
Benchmarks FloatLargeArray in a separate thread.
|
static void |
benchmarkFloatLargeArrayNative()
Benchmarks FloatLargeArray using native memory.
|
static void |
benchmarkFloatLargeArrayNativeInANewThread()
Benchmarks FloatLargeArray in a separate thread using native memory.
|
static double[][] |
benchmarkJavaArraysByteRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks random access to Java arrays of type byte.
|
static double[][] |
benchmarkJavaArraysByteSequential(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to Java arrays of type byte.
|
static double[][] |
benchmarkJavaArraysDoubleRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks random access to Java arrays of type double.
|
static double[][] |
benchmarkJavaArraysDoubleSequential(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to Java arrays of type double.
|
static double[][] |
benchmarkJLargeArraysByteRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks random access to LargeArrays of type byte.
|
static double[][] |
benchmarkJLargeArraysByteSequentual_safe(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to LargeArrays of type byte using _safe methods.
|
static double[][] |
benchmarkJLargeArraysByteSequentual(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to LargeArrays of type byte.
|
static double[][] |
benchmarkJLargeArraysByteSequentualNative(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to LargeArrays of type byte using native memory.
|
static double[][] |
benchmarkJLargeArraysDoubleRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks random access to LargeArrays of type double.
|
static double[][] |
benchmarkJLargeArraysDoubleSequentual(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to LargeArrays of type double.
|
static double[][] |
benchmarkJLargeArraysDoubleSequentualNative(long[] sizes,
int[] nthreads,
int iters,
String file)
Benchmarks sequential access to LargeArrays of type double using native memory.
|
static void |
benchmarkStatisticsAvg()
Benchmarks average operation.
|
static void |
main(String[] args)
Main method for running benchmarks.
|
public static double[][] benchmarkJavaArraysByteSequential(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJavaArraysDoubleSequential(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJavaArraysByteRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJavaArraysDoubleRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysByteSequentual(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysByteSequentualNative(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysByteSequentual_safe(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysDoubleSequentual(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysDoubleSequentualNative(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysByteRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static double[][] benchmarkJLargeArraysDoubleRandom(long[] sizes,
int[] nthreads,
int iters,
String file)
sizes - array sizesnthreads - number of threadsiters - number iterationsfile - output file
public static void benchmarkByteSequential(long[] sizes,
int[] nthreads,
int iters,
String directory)
sizes - array sizesnthreads - number of threadsiters - number iterationsdirectory - output directory pathpublic static void benchmarkDoubleSequential(long[] sizes,
int[] nthreads,
int iters,
String directory)
sizes - array sizesnthreads - number of threadsiters - number iterationsdirectory - output directory pathpublic static void benchmarkByteRandom(long[] sizes,
int[] nthreads,
int iters,
String directory)
sizes - array sizesnthreads - number of threadsiters - number iterationsdirectory - output directory pathpublic static void benchmarkDoubleRandom(long[] sizes,
int[] nthreads,
int iters,
String directory)
sizes - array sizesnthreads - number of threadsiters - number iterationsdirectory - output directory pathpublic static void benchmarkByteLargeArray()
public static void benchmarkByteLargeArrayInANewThread()
public static void benchmarkFloatLargeArray()
public static void benchmarkFloatLargeArrayInANewThread()
public static void benchmarkByteLargeArrayNative()
public static void benchmarkByteLargeArrayNativeInANewThread()
public static void benchmarkFloatLargeArrayNative()
public static void benchmarkFloatLargeArrayNativeInANewThread()
public static void benchmarkArithmeticAdd()
public static void benchmarkStatisticsAvg()
public static void main(String[] args)
args - unusedCopyright © 2015. All rights reserved.