com.carrotsearch.hppc.caliper
Class BenchmarkContainsWithRemoved
java.lang.Object
com.google.caliper.api.Benchmark
com.google.caliper.SimpleBenchmark
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.
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 |
keys
public int[] keys
queryKeys
public int[] queryKeys
removedKeys
public double removedKeys
implementation
public Implementations implementation
impl
public MapImplementation<?> impl
size
public int size
BenchmarkContainsWithRemoved
public BenchmarkContainsWithRemoved()
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.