microbenchmarking a component that encapsulates a threading service

Thondepu, Raj raj.thondepu at jpmorgan.com
Wed May 18 20:19:41 UTC 2016


Friends:

I have a case where I am trying to benchmark a tightly encapsulated producer-consumer component where I have handle only to publish to it and receive a call back on the listener. Needless to say, the thread calling the listener is a component thread.  Is there a way to benchmark the listener throughput?

To my understanding @Benchmark uses jmh's own threads to call and benchmark declared methods.  I was wondering if there is any way to let jmh override my listener call and time it.

Your advice is highly appreciated.

Raj


This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information,  viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email


More information about the jmh-dev mailing list