I've used JMH in the past (long past now I guess).

However isn't the idea to be so granular that using JMH against a deep call
chain is not really useful?

Why wouldn't you just call the method that concerns you with dependencies
stubbed out such that they don't introduce in-variance to your test?

- Ray


On Thu, Sep 27, 2018 at 11:41 AM Thomas Driessen via osgi-dev <
[email protected]> wrote:

> Hi,
>
> I want to benchmark a method within a running OSGi instance.
>
> There are three services A, B, C where A references B and B references C.
> Calling a method  on A transitively calls a method on B which calls a
> method on C.
> A, B and C are configured at runtime through ConfigurationAdmin and I want
> to benchmark the method called on A when everything is set up.
> I wanted to use JMH but have no clue on how to force JMH to use the
> instance of A created by OSGi? Is this even possible? If not, how would you
> benchmark something within OSGi?
>
> Does anyone have experience with JMH in the context of OSGi and could
> kindly give me some advice?
>
> Kind regards,
> Thomas
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev



-- 
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to