Zakelly commented on code in PR #83: URL: https://github.com/apache/flink-benchmarks/pull/83#discussion_r1429207983
########## src/main/java/org/apache/flink/state/benchmark/ttl/TtlStateBenchmarkBase.java: ########## @@ -0,0 +1,48 @@ +package org.apache.flink.state.benchmark.ttl; + +import org.apache.flink.api.common.state.StateDescriptor; +import org.apache.flink.api.common.state.StateTtlConfig; +import org.apache.flink.api.common.time.Time; +import org.apache.flink.state.benchmark.StateBenchmarkBase; +import org.openjdk.jmh.annotations.Param; + +import java.util.concurrent.TimeUnit; + +/** The base class for state tests with ttl. */ +public class TtlStateBenchmarkBase extends StateBenchmarkBase { + + /** The expired time of ttl. */ + public enum ExpiredTimeOptions { + + /** 5 seconds. */ + Seconds5(5000), Review Comment: Considering that the warm-up will take `10` seconds, `5` seconds is enough for the test to enter the key expiration phase, and it is not too short. I will give a comparison of the results under different configurations. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org