com.carrotsearch.hppc.caliper
Class BenchmarkPut

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

public class BenchmarkPut
extends com.google.caliper.SimpleBenchmark

Benchmark putting a given number of integers into a hashmap.


Nested Class Summary
static class BenchmarkPut.Distribution
           
 
Field Summary
 BenchmarkPut.Distribution distribution
           
 Implementations implementation
           
 int[] keys
           
 int size
           
 
Constructor Summary
BenchmarkPut()
           
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void setUp()
           
 int timePut(int reps)
          Time the 'put' operation.
 
Methods inherited from class com.google.caliper.SimpleBenchmark
bytesToUnits, createBenchmark, getInstanceUnitNames, getMemoryUnitNames, getTimeUnitNames, instancesToUnits, nanosToUnits, normalizeScenario, parameterNames, parameterValues, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keys

public int[] keys

distribution

public BenchmarkPut.Distribution distribution

implementation

public Implementations implementation

size

public int size
Constructor Detail

BenchmarkPut

public BenchmarkPut()
Method Detail

setUp

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

timePut

public int timePut(int reps)
Time the 'put' operation.


main

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


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