Class Benchmark


  • public class Benchmark
    extends java.lang.Object
    This class is used to benchmark the performance EWAH.
    Author:
    Daniel Lemire
    • Constructor Summary

      Constructors 
      Constructor Description
      Benchmark()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static void test​(int N, int nbr, int repeat)  
      static int[] unite2by2​(int[] set1, int[] set2)
      Compute the union between two sorted arrays
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Benchmark

        public Benchmark()
    • Method Detail

      • unite2by2

        public static int[] unite2by2​(int[] set1,
                                      int[] set2)
        Compute the union between two sorted arrays
        Parameters:
        set1 - first sorted array
        set2 - second sorted array
        Returns:
        merged array
      • main

        public static void main​(java.lang.String[] args)
      • test

        public static void test​(int N,
                                int nbr,
                                int repeat)