With ducktyped, in development mode: 1158882365 - 1158882256 37.11 - 40.547 vs. "normal" reactor: 1158884439 - 1158884314 39.094 - 49.578 avg of 43 or so
Haven't tried it in production mode... should that be faster too? Similar test as Jared's, not scientific, just with a existing page with some hierarchies. getTickCount/1000 at startup, and 40 secs or so for the loop, over 5 objects, with many linked/children "sub-objects". Just thought I'd give it a whirl, and my code could be in poor shape, so take those results with a grain of sand, or salt, or whatever that is. :Den On 9/21/06, Jared Rypka-Hauer <[EMAIL PROTECTED]> wrote:
It's not really that controversial... The differences have been confirmed in the cases of both MG:U and FB5. Removing the returntypes and type attributes from cffunction and cfargument removes all the runtime checking that CF does internally to validate things. Since it's generated code and internal framework code, it's not an issue. There are still times that using these attributes are a Good Idea(tm). My tests were pretty unscientific... created a config object, set Reactor to development mode and populated the config and created a Reactor factory. Then I had a 5-iteration cfloop around a load() call on one of my objects (which happens to be the one object in this test DB that has link tables). Also in this loop were some getTickCount() calls to keep track of time. I used a mapping to point to reactor and and the duck-typed one. First I set up with the mapping pointing at the original vserion, and hit refresh about a half-dozen times, letting the page finish completely on each refresh. Average-ish time was 3.5 to 3.9 seconds to do myObj.load(objId=1) after the generation process had completed (though it's in dev mode so it shouldn't matter that much). Next I changed the mapping and cycled the page the same way. The results were astonishing: 1.5 to 1.7 seconds for all 5 iterations of the loop. Both tests were with the same page, the only thing that changed was the mapping pointing to the Reactor version of choice. That's a hefty performance boost. And again, it's not just Reactor, it's MG and FB5, too... HUGE gains. Laterz, J On Thu, 21 Sep 2006 12:20:05 -0700 "Chris Phillips" <[EMAIL PROTECTED]> wrote: > The controversial "duck typing is faster" topic..... > > I can't wait to see posted results on this. > > Maybe Jared could even post what he was doing to lead him > to that > conclusion. > > Regards, > > Chris P. > > On 9/21/06, Doug Hughes <[EMAIL PROTECTED]> wrote: > > > > > > > > Hey everyone, I thought I'd mention that there's a new > branch of reactor > > at > http://svn.reactorframework.com/reactor/branches/duckies/reactor. > This > > is a duck-typed version of Reactor. I've been using it > for a week or so > > without any obvious problems. Jared claims it's > significantly faster than > > the main branch, though I've had PC issues and can't > confirm that. > > > > > > > > Please, test this out and write back to the list to > give me your > > impressions. > > > > > > > > Doug > > > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > -- -- -- -- -- -- -- > > -- -- > > Reactor for ColdFusion Mailing List > > [email protected] > > Archives at: > http://www.mail-archive.com/reactor%40doughughes.net/ > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > -- -- -- -- -- -- -- > > -- -- > > > > > -- > Chris Phillips > www.dealerpeak.com > Senior Application Developer > > > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > -- -- -- -- -- -- -- -- > Reactor for ColdFusion Mailing List > [email protected] > Archives at: > http://www.mail-archive.com/reactor%40doughughes.net/ > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
