public abstract class AbstractListTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Random |
rand |
protected int |
size |
| Constructor and Description |
|---|
AbstractListTest() |
| Modifier and Type | Method and Description |
|---|---|
abstract long |
bytes()
Calculates the size of the data structure under test.
|
abstract void |
iterate(org.openjdk.jmh.infra.Blackhole bh)
Iterates through the test list.
|
abstract void |
iterateInPlace(org.openjdk.jmh.infra.Blackhole bh)
Iterates through the test list (if it is a InplaceList).
|
void |
setRandomSeed(long seed) |
void |
setSize(int size) |
abstract void |
setup()
Setups the test.
|
abstract void |
shuffle()
Shuffles the test list.
|
abstract void |
sort()
Sorts the test list.
|
protected final Random rand
protected int size
public void setSize(int size)
public void setRandomSeed(long seed)
public abstract void shuffle()
public abstract void sort()
public abstract void iterate(org.openjdk.jmh.infra.Blackhole bh)
bh - The blackhole to throw your data into.public abstract void iterateInPlace(org.openjdk.jmh.infra.Blackhole bh)
bh - The blackhole to throw your data into.public abstract long bytes()
Copyright © 2015. All rights reserved.