title: Performance impact of using CDI
body: <p>I am writing a Java EE 6 web application and I am noticing a significant performance impact when using an injected object versus creating and using the object directly. The overhead appears to be of the order of 50 - 60ms per method call.</p>
  
  <p>For example, using non-injected 150 method calls take approx 500ms whereas using the injected object 150 method calls take 12,000 - 13,000ms. An order of magnitude difference and then some.</p>
  
  <p>Is this usual?</p>
  
  <p>I am running on JBoss AS 7.1.1 final which uses Weld to handle CDI.</p>
  
  <p>The injected object is defined as a singleton bean (via the javax.ejb.Singleton annotation). Could this be causing part of the problem? Or is it just the Weld proxy causing the slow down?</p>