hg: code-tools/jmh: 7902452: Missing RFFieldInfo.toString

Justin Ling Mao maoling199210191 at sina.com
Mon Apr 22 10:59:08 UTC 2019


1. Hi, OpenJDK JMH Community,I am writing a benchmark tool for zookeeper with JMH,and I have some questions for asking.Could someone please give me some helps ?2. If I want to test the read perfermance(the getData() method) and what I want is:simulate 100000 read requests and 10 concurrency clients,What the parameters/options(mode,fork,threads,measurementIterations,measurementBatchSize) should I set?--------------------------------------------------------------------------------------------------------------------------- at OutputTimeUnit(TimeUnit.MILLISECONDS)@State(Scope.Thread)//@BenchmarkMode(Mode.SingleShotTime)public class ZkJMHTest {    statc ZooKeeper zk = null;    @Setup(Level.Iteration)    public void setup() {        try {            zk = new ZooKeeper("127.0.0.1:2181", 60000, null);        } catch (IOException e) {            e.printStackTrace();        }    }    @Benchmark    public void getData() {        try {            zk.getData("/benchmark",false, null);        } catch (KeeperException | InterruptedException e) {            e.printStackTrace();        }    }    public static void main(String[] args) throws RunnerException {        Options options = new OptionsBuilder()                .include(ZkJMHTest.class.getName()+".getData")                .mode(Mode.SingleShotTime)                //.threads(10)                .measurementIterations(5)                .measurementBatchSize(10000)                .forks(1)                .build();        new Runner(options).run();    }}


More information about the jmh-dev mailing list