[weld-issues] [JBoss JIRA] Resolved: (WELD-864) poor performance @Inject + Interceptor
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Mon Mar 7 23:57:45 EST 2011
[ https://issues.jboss.org/browse/WELD-864?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Douglas resolved WELD-864.
This should speed up the interceptors considerably. Performance is still slower however it appears to be the fault of the weld/GF integration layer.
> poor performance @Inject + Interceptor
> Key: WELD-864
> URL: https://issues.jboss.org/browse/WELD-864
> Project: Weld
> Issue Type: Bug
> Components: Interceptors and Decorators, Performance and Scalability
> Affects Versions: 1.1.0.Final
> Environment: OS name: "linux", version: "2.6.37-gentoo", arch: "i386", family: "unix"
> Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
> Glassfish 3.1.0-b43
> Reporter: wojtek k
> Assignee: Stuart Douglas
> Fix For: 1.2.0.Beta1
> Attachments: arquallian-test.tar.gz
> I did some performance test using Weld Interceptors.
> I compared beans injected @Inject and @EJB. Beans had the same logic.
> Here are my results
> This took time: 48872ms [@EJB Class EJB-Interceptor]
> This took time: 49133ms [@EJB Method EJB Interceptor]
> This took time: 48939ms [@EJB Class Method-Interceptor]
> This took time: 49115ms [@EJB Method Weld-Interceptor]
> This took time: 48812ms [@EJB No Interceptor]
> This took time: 4619ms [@Inject No Interceptor]
> This took time: 201270ms [@Inject Class Weld-Interceptor]
> This took time: 203329ms [@Inject Method Weld-Interceptor]
> This took time: 34ms [POJO]
> As you can see @Inject + Interceptor have poor performance.
> EJB Bean -> @Stateless
> Weld Bean ->@SessionScoped (2 instances was created)
> If you need source code for this test please inform me
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues