benchmark: doc

This commit is contained in:
Daniel Langbein 2024-12-11 15:40:50 +00:00
parent ebff5b6dc5
commit e627c99b55
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -13,6 +13,10 @@ import java.util.concurrent.TimeUnit;
@Warmup(iterations = 3)
@Measurement(iterations = 6)
public class BenchmarkJmh {
/**
* Quote from JMH:
* State objects naturally encapsulate the state on which benchmark is working on.
*/
@State(Scope.Benchmark)
public static class State1 {
RandomIntegers d = new RandomIntegers();