com.googlecode.javaewah.benchmark
Class Benchmark

java.lang.Object
  extended by com.googlecode.javaewah.benchmark.Benchmark

public class Benchmark
extends Object

This class is used to benchmark the performance EWAH.

Author:
Daniel Lemire

Constructor Summary
Benchmark()
           
 
Method Summary
static void main(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(String[] args)

test

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


Copyright © 2013. All Rights Reserved.