From e627c99b55b7c0eec332bf828e96ea3770d29082 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Wed, 11 Dec 2024 15:40:50 +0000 Subject: [PATCH] benchmark: doc --- .../java/de/uni_marburg/powersort/benchmark/BenchmarkJmh.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/jmh/java/de/uni_marburg/powersort/benchmark/BenchmarkJmh.java b/app/src/jmh/java/de/uni_marburg/powersort/benchmark/BenchmarkJmh.java index 77ea4d6..d4ebd95 100644 --- a/app/src/jmh/java/de/uni_marburg/powersort/benchmark/BenchmarkJmh.java +++ b/app/src/jmh/java/de/uni_marburg/powersort/benchmark/BenchmarkJmh.java @@ -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();