PCJ API
Version 1.2

bak.pcj.benchmark
Class IntKeyIntMapBenchmark

java.lang.Object
  extended bybak.pcj.benchmark.Benchmark
      extended bybak.pcj.benchmark.IntKeyIntMapBenchmark
Direct Known Subclasses:
IntKeyIntAdaptedHashMapBenchmark, IntKeyIntChainedHashMapBenchmark, IntKeyIntOpenHashMapBenchmark

public abstract class IntKeyIntMapBenchmark
extends Benchmark

This class represents an abstract base for implementing benchmarks for maps of int values.

Since:
1.0

Constructor Summary
IntKeyIntMapBenchmark(IntKeyIntMapFactory factory)
           
 
Method Summary
 String benchmarkGetExisting(DataSet dataSet)
           
 String benchmarkGetNonExisting(DataSet dataSet)
           
 String benchmarkIterator(DataSet dataSet)
           
 String benchmarkPutExisting(DataSet dataSet)
           
 String benchmarkPutNonExisting(DataSet dataSet)
           
 String benchmarkRemoveExisting(DataSet dataSet)
           
 String benchmarkRemoveNonExisting(DataSet dataSet)
           
protected  IntKeyIntMap create()
           
protected  IntKeyIntMap create(int[] keys, int[] values)
           
 String getClassId()
          Returns the name of the class that is benchmarked.
 
Methods inherited from class bak.pcj.benchmark.Benchmark
readTimer, startTimer, stopTimer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntKeyIntMapBenchmark

public IntKeyIntMapBenchmark(IntKeyIntMapFactory factory)
Method Detail

create

protected IntKeyIntMap create(int[] keys,
                              int[] values)

create

protected IntKeyIntMap create()

getClassId

public String getClassId()
Description copied from class: Benchmark
Returns the name of the class that is benchmarked.

Specified by:
getClassId in class Benchmark
Returns:
the name of the class that is benchmarked.

benchmarkPutExisting

public String benchmarkPutExisting(DataSet dataSet)

benchmarkPutNonExisting

public String benchmarkPutNonExisting(DataSet dataSet)

benchmarkGetExisting

public String benchmarkGetExisting(DataSet dataSet)

benchmarkGetNonExisting

public String benchmarkGetNonExisting(DataSet dataSet)

benchmarkRemoveExisting

public String benchmarkRemoveExisting(DataSet dataSet)

benchmarkRemoveNonExisting

public String benchmarkRemoveNonExisting(DataSet dataSet)

benchmarkIterator

public String benchmarkIterator(DataSet dataSet)

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo