Wow, never realized the ColdSpring overhead was quite that high. Now I see
why it's really meant for singletons!

On 10/5/07, Sean Corfield <[EMAIL PROTECTED]> wrote:
>
> On 10/5/07, Brian Kotek <[EMAIL PROTECTED]> wrote:
> > True CF8 object creation is way, way faster (hooray!). But even on CF8,
> > creating per-request objects with ColdSpring is always going to be a
> tiny
> > bit slower than creating them with your own factory, due to ColdSpring
> > resolving the dependencies.
>
> CF8 can create 1000 simple objects in about 100ms on my laptop.
>
> Creating them via ColdSpring takes about 4800ms so I'm not sure I'd
> class that as "a tiny bit slower"...
>
> If you're only creating one or two transients per request with
> ColdSpring then it's a small per-request overhead.
>
> FWIW, the overhead of duplicate() is close to ColdSpring/LightWire:
>
> Simple Create: 62ms
> Simple Duplicate: 3814ms
> Create/Init: 96ms
> Duplicate/Init: 3985ms
> Create CS Factory: 64ms
> CS Create First Bean: 16ms
> CS Create Without First Call: 4775ms
> Create LW Factory: 4ms
> LW Create First Bean: 4ms
> LW Create Without First Call: 4226ms
>
> CS/LW auto-call the init() so I compared Create/Init against CS/LW. I
> separated out the first getBean() call since that always has more
> overhead.
>
> I'm pasting the code in below in case anyone wants to try it on CF7.
> FWIW, Trusted Cache has a *huge* impact on the numbers:
>
> Simple Create: 36ms
> Simple Duplicate: 83ms
> Create/Init: 51ms
> Duplicate/Init: 94ms
> Create CS Factory: 7ms
> CS Create First Bean: 11ms
> CS Create Without First Call: 1233ms
> Create LW Factory: 1ms
> LW Create First Bean: 0ms
> LW Create Without First Call: 244ms
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290396
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to