com.carrotsearch.hppc.caliper
Class BenchmarkContainsWithRemoved

java.lang.Object
  extended by com.google.caliper.api.Benchmark
      extended by com.google.caliper.SimpleBenchmark
          extended by com.carrotsearch.hppc.caliper.BenchmarkContainsWithRemoved
All Implemented Interfaces:
com.google.caliper.Benchmark

public class BenchmarkContainsWithRemoved
extends com.google.caliper.SimpleBenchmark

Create a large map of int keys, remove a fraction of the keys and query with half/half keys and a some random values.


Field Summary
 MapImplementation<?> impl
           
 Implementations implementation
           
 int[] keys
           
 int[] queryKeys
           
 double removedKeys
           
 int size
           
 
Constructor Summary
BenchmarkContainsWithRemoved()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
protected  void tearDown()
           
 int timeContains(int reps)
           
 
Methods inherited from class com.google.caliper.SimpleBenchmark
bytesToUnits, createBenchmark, getInstanceUnitNames, getMemoryUnitNames, getTimeUnitNames, instancesToUnits, nanosToUnits, normalizeScenario, parameterNames, parameterValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

public int[] keys

queryKeys

public int[] queryKeys

removedKeys

public double removedKeys

implementation

public Implementations implementation

impl

public MapImplementation<?> impl

size

public int size
Constructor Detail

BenchmarkContainsWithRemoved

public BenchmarkContainsWithRemoved()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class com.google.caliper.SimpleBenchmark
Throws:
java.lang.Exception

timeContains

public int timeContains(int reps)

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class com.google.caliper.SimpleBenchmark
Throws:
java.lang.Exception

main

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


Copyright © 2011 Carrot Search s.c.. All Rights Reserved.