Documentation of 'pl.edu.icm.jlargearrays.Benchmark' Java class
Benchmark
pl.edu.icm.jlargearrays

Class Benchmark



  • public class Benchmark
    extends java.lang.Object
    Benchmarks.
    • Constructor Detail

      • Benchmark

        public Benchmark()
    • Method Detail

      • benchmarkJavaArraysByteSequential

        public static double[][] benchmarkJavaArraysByteSequential(long[] sizes,
                                                                   int[] nthreads,
                                                                   int iters,
                                                                   java.lang.String file)
        Benchmarks sequential access to Java arrays of type byte.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJavaArraysDoubleSequential

        public static double[][] benchmarkJavaArraysDoubleSequential(long[] sizes,
                                                                     int[] nthreads,
                                                                     int iters,
                                                                     java.lang.String file)
        Benchmarks sequential access to Java arrays of type double.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJavaArraysByteRandom

        public static double[][] benchmarkJavaArraysByteRandom(long[] sizes,
                                                               int[] nthreads,
                                                               int iters,
                                                               java.lang.String file)
        Benchmarks random access to Java arrays of type byte.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJavaArraysDoubleRandom

        public static double[][] benchmarkJavaArraysDoubleRandom(long[] sizes,
                                                                 int[] nthreads,
                                                                 int iters,
                                                                 java.lang.String file)
        Benchmarks random access to Java arrays of type double.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysByteSequentual

        public static double[][] benchmarkJLargeArraysByteSequentual(long[] sizes,
                                                                     int[] nthreads,
                                                                     int iters,
                                                                     java.lang.String file)
        Benchmarks sequential access to LargeArrays of type byte.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysByteSequentualNative

        public static double[][] benchmarkJLargeArraysByteSequentualNative(long[] sizes,
                                                                           int[] nthreads,
                                                                           int iters,
                                                                           java.lang.String file)
        Benchmarks sequential access to LargeArrays of type byte using native memory.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysByteSequentual_safe

        public static double[][] benchmarkJLargeArraysByteSequentual_safe(long[] sizes,
                                                                          int[] nthreads,
                                                                          int iters,
                                                                          java.lang.String file)
        Benchmarks sequential access to LargeArrays of type byte using _safe methods.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysDoubleSequentual

        public static double[][] benchmarkJLargeArraysDoubleSequentual(long[] sizes,
                                                                       int[] nthreads,
                                                                       int iters,
                                                                       java.lang.String file)
        Benchmarks sequential access to LargeArrays of type double.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysDoubleSequentualNative

        public static double[][] benchmarkJLargeArraysDoubleSequentualNative(long[] sizes,
                                                                             int[] nthreads,
                                                                             int iters,
                                                                             java.lang.String file)
        Benchmarks sequential access to LargeArrays of type double using native memory.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysByteRandom

        public static double[][] benchmarkJLargeArraysByteRandom(long[] sizes,
                                                                 int[] nthreads,
                                                                 int iters,
                                                                 java.lang.String file)
        Benchmarks random access to LargeArrays of type byte.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkJLargeArraysDoubleRandom

        public static double[][] benchmarkJLargeArraysDoubleRandom(long[] sizes,
                                                                   int[] nthreads,
                                                                   int iters,
                                                                   java.lang.String file)
        Benchmarks random access to LargeArrays of type double.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        file - output file

        Returns:
        timings
      • benchmarkByteSequential

        public static void benchmarkByteSequential(long[] sizes,
                                                   int[] nthreads,
                                                   int iters,
                                                   java.lang.String directory)
        Runs benchmarkJavaArraysByteSequential and benchmarkJLargeArraysByteSequentual methods.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        directory - output directory path
      • benchmarkDoubleSequential

        public static void benchmarkDoubleSequential(long[] sizes,
                                                     int[] nthreads,
                                                     int iters,
                                                     java.lang.String directory)
        Runs benchmarkJavaArraysDoubleSequential and benchmarkJLargeArraysDoubleSequentual methods.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        directory - output directory path
      • benchmarkByteRandom

        public static void benchmarkByteRandom(long[] sizes,
                                               int[] nthreads,
                                               int iters,
                                               java.lang.String directory)
        Runs benchmarkJavaArraysByteRandom and benchmarkJLargeArraysByteRandom methods.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        directory - output directory path
      • benchmarkDoubleRandom

        public static void benchmarkDoubleRandom(long[] sizes,
                                                 int[] nthreads,
                                                 int iters,
                                                 java.lang.String directory)
        Runs benchmarkJavaArraysDoubleRandom and benchmarkJLargeArraysDoubleRandom methods.

        Parameters:
        sizes - array sizes
        nthreads - number of threads
        iters - number iterations
        directory - output directory path
      • benchmarkByteLargeArray

        public static void benchmarkByteLargeArray()
        Benchmarks ByteLargeArray.
      • benchmarkByteLargeArrayInANewThread

        public static void benchmarkByteLargeArrayInANewThread()
        Benchmarks ByteLargeArray in a separate thread.
      • benchmarkFloatLargeArray

        public static void benchmarkFloatLargeArray()
        Benchmarks FloatLargeArray.
      • benchmarkFloatLargeArrayInANewThread

        public static void benchmarkFloatLargeArrayInANewThread()
        Benchmarks FloatLargeArray in a separate thread.
      • benchmarkByteLargeArrayNative

        public static void benchmarkByteLargeArrayNative()
        Benchmarks ByteLargeArray using native memory.
      • benchmarkByteLargeArrayNativeInANewThread

        public static void benchmarkByteLargeArrayNativeInANewThread()
        Benchmarks ByteLargeArray in a separate thread using native memory.
      • benchmarkFloatLargeArrayNative

        public static void benchmarkFloatLargeArrayNative()
        Benchmarks FloatLargeArray using native memory.
      • benchmarkFloatLargeArrayNativeInANewThread

        public static void benchmarkFloatLargeArrayNativeInANewThread()
        Benchmarks FloatLargeArray in a separate thread using native memory.
      • benchmarkArithmeticAdd

        public static void benchmarkArithmeticAdd()
        Benchmarks addition operation.
      • benchmarkStatisticsAvg

        public static void benchmarkStatisticsAvg()
        Benchmarks average operation.
      • benchmarkSerialization

        public static void benchmarkSerialization()
      • main

        public static void main(java.lang.String[] args)
        Main method for running benchmarks.

        Parameters:
        args - unused

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.