How to measure distribution rate using jmh?

JMH seems to have most of the characteristics of a caliper as well as a better caliper , but I couldn't figure out how to measure the distribution speed, which is generally useful to be able to look in micro-business. Is JMH the wrong tool for measuring distribution velocity?

+3


source to share


1 answer


JMH does not have an accurate measurement of the distribution rate. This is a job for a profiler like Java Mission Control. In JMH, you can roughly estimate the distribution pressure by observing the GC count through MXBeans. This is wrapped by JMH profilers for example. -prof gc

... Use -lprof

to get a list of built-in profilers.



+8


source







All Articles