[jboss-user] [JBoss Microcontainer Development] - JBoss Reflect Performance Javassist vs Introspection
Kabir Khan
do-not-reply at jboss.com
Fri Apr 16 12:20:43 EDT 2010
Kabir Khan [http://community.jboss.org/people/kabir.khan%40jboss.com] replied to the discussion
"JBoss Reflect Performance Javassist vs Introspection"
To view the discussion, visit: http://community.jboss.org/message/538027#538027
--------------------------------------------------------------
> Kabir Khan wrote:
>
> Here are the times:
> >
> > ========== IntrospectionTypeInfoFactory
> >
> > A - Creating 100 ClassInfos 141ms
> >
> > B - Getting 100 fields and methods for 100 classes 50 times 1446ms
> >
> > C - First accessing 100 fields and methods for 100 classes 50 times 116ms
> >
> > D - Accessing 100 fields and methods for 100 classes 50 times 3545ms
> >
> > Done!
> >
> >
> >
> >
> > ========== JavassistTypeInfoFactory
> >
> > A - Creating 100 ClassInfos 164ms
> >
> > B - Getting 100 fields and methods for 100 classes 50 times 820ms
> >
> > C - First accessing 100 fields and methods for 100 classes 50 times 4557ms
> >
> > D - Accessing 100 fields and methods for 100 classes 50 times 272ms
> >
> > Done!
> >
The output here is a bit misleading. C only accesses the members once, not 50 in order to determine the overhead of creating the JavassistMethod/-Constructor/-Field classes. I've updated the benchmark in svn to read:
>
> ========== IntrospectionTypeInfoFactory
> A - Creating 100 ClassInfos 141ms
> B - Getting 100 fields and methods for 100 classes 50 times 1446ms
> C - First accessing 100 fields and methods for 100 classes 116ms
> D - Accessing 100 fields and methods for 100 classes 50 times 3545ms
> Done!
>
>
> ========== JavassistTypeInfoFactory
> A - Creating 100 ClassInfos 164ms
> B - Getting 100 fields and methods for 100 classes 50 times 820ms
> C - First accessing 100 fields and methods for 100 classes 4557ms
> D - Accessing 100 fields and methods for 100 classes 50 times 272ms
> Done!
>
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/538027#538027]
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/20100416/de566168/attachment.html
More information about the jboss-user
mailing list