public class ArrayListBenchmark extends Object
Modifier and Type | Field and Description |
---|---|
static Map<String,AbstractListTest> |
benchmarks |
String |
list |
int |
size |
String |
type |
Constructor and Description |
---|
ArrayListBenchmark() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Runs the ArrayListBenchmarks.
|
void |
setup()
Sets up the benchmark.
|
void |
shuffle()
Shuffles the list under test.
|
void |
testIterate(org.openjdk.jmh.infra.Blackhole bh) |
void |
testListIterateInPlace(org.openjdk.jmh.infra.Blackhole bh) |
void |
testSort() |
public static final Map<String,AbstractListTest> benchmarks
public int size
public String list
public String type
public void setup() throws Exception
Exception
- if the setup failspublic void shuffle()
public void testSort()
public void testIterate(org.openjdk.jmh.infra.Blackhole bh)
public void testListIterateInPlace(org.openjdk.jmh.infra.Blackhole bh)
public static void main(String[] args) throws org.openjdk.jmh.runner.RunnerException
args
- command line argumentsorg.openjdk.jmh.runner.RunnerException
- if the Benchmark Runner failsCopyright © 2015. All rights reserved.