mirror of
https://gitlab.uni-marburg.de/langbeid/powersort.git
synced 2025-01-22 19:55:44 +01:00
benchmark: doc
This commit is contained in:
parent
ebff5b6dc5
commit
e627c99b55
@ -13,6 +13,10 @@ import java.util.concurrent.TimeUnit;
|
|||||||
@Warmup(iterations = 3)
|
@Warmup(iterations = 3)
|
||||||
@Measurement(iterations = 6)
|
@Measurement(iterations = 6)
|
||||||
public class BenchmarkJmh {
|
public class BenchmarkJmh {
|
||||||
|
/**
|
||||||
|
* Quote from JMH:
|
||||||
|
* State objects naturally encapsulate the state on which benchmark is working on.
|
||||||
|
*/
|
||||||
@State(Scope.Benchmark)
|
@State(Scope.Benchmark)
|
||||||
public static class State1 {
|
public static class State1 {
|
||||||
RandomIntegers d = new RandomIntegers();
|
RandomIntegers d = new RandomIntegers();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user