[jboss-user] [JBoss Microcontainer Development] - Benchmarking classloaders

David Bosschaert do-not-reply at jboss.com
Mon Jul 19 07:20:59 EDT 2010


David Bosschaert [http://community.jboss.org/people/bosschaert] replied to the discussion

"Benchmarking classloaders"

To view the discussion, visit: http://community.jboss.org/message/553267#553267

--------------------------------------------------------------
Hi Kabir,

I just implemented something like this for the OSGi performance benchmarks. Here's a quick description of the bundle dependency topology that it creates:
 5 (Versioned) Common Bundles
   - Exports org.jboss.osgi.test.common;version=x
 5 Numbered (but not versioned) Util Bundles
   - Imports org.jboss.osgi.test.common
   - Exports org.jboss.osgi.test.util[x];uses="org.jboss.osgi.test.common"
 5 Versioned Interfaces Bundles
   - Exports org.jboss.osgi.test.versioned;version=x
 5 Versioned Impl Bundles
   - Imports org.jboss.osgi.test.common;version=[x,x]
   - Imports org.jboss.osgi.test.versioned;version=[x,x]
   - Imports org.jboss.osgi.test.util[x]
   - Exports org.jboss.osgi.test.versioned.impl;version=x;uses=org.jboss.osgi.test.util[x]
 a large number of test bundles (number configurable)
   - Imports org.jboss.osgi.test.common;version=[x,x]
   - Imports org.jboss.osgi.test.versioned;version=[x,x]
   - Imports org.jboss.osgi.test.versioned.impl;version=[x,x]
Where x is a number [1..5].

Each test bundle loads a class of each of its 3 dependency packages in its activator. This also triggers an indirect load on the Util[x] class.

It's available on master in jbosgi on github:  http://github.com/jbosgi/jbosgi/blob/master/testsuite/performance/src/test/java/org/jboss/osgi/test/performance/bundle/BundleInstallAndStartBenchmark.java BundleInstallAndStartBenchmark.java

You might be able to reuse some of this...

David

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/553267#553267]

Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2115]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100719/318edb8a/attachment.html 


More information about the jboss-user mailing list