I read about JMH and tried the samples provided.
What I am trying to do is measure the stats of following scenario,
[ 1] client order -> [2] server -> [3] start processing the order -> [4] processed the order successfully and ready to send -> [5] client receive the response
I could successfully done [ 1] to [5] scenario. There I am calling my client from @Benchmark annotated method using benchmark.jar
Now I am stuck at measuring stats from [2] to [4] which represents the server side processing. Should I do this by annotating server side methods? If so how can I call those method in a way that to get the benchmark stats?
Documentation says The recommended way to run a JMH benchmark is to use Maven to setup a standalone project that depends on the jar files of your application.
Does this mean the scenario I'm trying is not possible using JMH?
Update: Is there a way to call @Benchmark annotated methods via rmi calls?