On 4/18/06, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > >From: "Martin Marinschek" <[EMAIL PROTECTED]> > > > > > Facelets are faster - the JSP overhead goes with them. Adam quoted 14% > > speed gains by using Facelets. > > > > Is that metric a comparison of the time it takes to compile a JSP versus > parsing the XML document or is that averaged out over several invocations?
This was averaged out over, say, 1500 invocations, and after a warmup invocation so that compilation and parsing are not part of the problem. I had some more recent benchmarks were I got even larger performance improvements. Plus, because Facelets instances are reused, they provide a *very* handy place to cache data structures, which I'm looking at taking advantage of to improve the performance of component assembly. If you were just talking the first request for a given page, and comparing compilation time in JSP versus Facelets parsing, I'm guessing the difference is more like 90%. I've never measured it, but "godawful slow versus blazingly fast" is a handy summary. ;) -- Adam
