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&...]