2014-10-21 11:57 GMT+02:00 Howard W. Smith, Jr. <[email protected]>: > Wow, very impressive. I'm glad I'm using TomEE+ 1.7.1 (for now) and looking > forward to TomEE+ 2.x. > > Questions below, > > > > - OWB-1.5.0: 13 ms (no this is NOT a hoax, it's due to our proxy caching > [1]...) > > All with Java8. > > Currently trying to run it on other boxes to rule out some misconfiguration > > [1] For @ApplicationScoped beans our proxies resolve the contextual > instance only once. Thus you get the benefits of a Proxy (serializability, > interceptors, decorators, cycle prevention, shield against scope > differences) for the costs of (almost) native invocation (Creating > 'underTest' via new instead of the CDI bean will run the test in 8ms). > > > OWB-1.5.0 is and/or will be bundled with TomEE+ 2.x 'and' future TomEE+ > 1.7.x releases? >
It is in TomEE 2 > @ApplicationScoped? interesting, I can remember you sending a > recommendation (to me via this list) about caching data in my app, and I > did that in my (CDI) @ApplicationScoped bean. Thanks Mark! :) > > > > On Tue, Oct 21, 2014 at 5:37 AM, Mark Struberg <[email protected]> wrote: > >> Hi! >> >> Yesterday I wrote a small micro benchmark to test the performance of some >> CDI containers. The outcome was pretty stunning - but best if you run it >> yourself: >> >> https://github.com/struberg/cdi-performance >> >> >> >> $> git clone https://github.com/struberg/cdi-performance.git >> $> cd cdi-performance >> >> Just look for the output: ALL THE STUFF TOOK: xxx ms >> >> >> >> >> The default profile runs with owb-1.2.6 which is currently used in >> TomEE-1.7.1: >> >> $> mvn clean install >> >> If you have OWB trunk installed you can also try the performance of >> OWB-1.5.0-SNAPSHOT: >> $> mvn clean install -POWB15 >> >> >> There is also a profile -POWB11 for testing OpenWebBeans-1.1.x. >> $> mvn clean install -POWB11 -Dowb.version=1.1.8 >> >> >> The numbers of the Reference Implementation (RI: Weld) can be tested via >> $> mvn clean install -PWeld >> >> but take your time and let it run - no it doesn't hang ;) >> >> >> >> The version of OWB can be defined as parameter '-Dowb.version=1.2.0' and >> similar for Weld: '-Dweld.version=2.2.5.Final' if you like to test the >> latest RI version. >> >> >> Feel free to debug into it if you don't believe our sheer crazy >> performance! >> >> As a result of this performance I was able to serve FAT applications with >> BIG pages (huge JSF datatables) within under 150ms where other EE >> containers took 2 seconds++... >> >> >> >> LieGrue, >> strub >>
