Folks,

In order to properly benchmark a Lift app and to get maximum performance:

   - Run in production mode.  Templates and other things are aggressively
   cached in production mode.
   - Explicitly declare all of your snippets rather than requiring lookup
   via reflection.
   - If you are using a template created via the basic archetype, you are
   doing at least 1 DB round trip for each request as part of the transaction
   wrapper.  There are ways around this.
   - Before starting your benchmark, load every page in the benchmark at
   least 50,000 times.  This gets HotSpot warmed up.

I would suggest benchmarking based on traffic and load... can your site
serve the number of pages/sec that you expect at peak load?  That's a more
realistic benchmark than the number of ms it takes to serve a given page.

Thanks,

David

On Sat, Dec 12, 2009 at 8:28 AM, Timothy Perrett <[email protected]>wrote:

> Personally, I think it would be better if you took a step back and look t
> *your* use case. Why do you need this speed, in what areas do you need it?
> (page serving, dispatching etc)
>
> If you better outline what you want, then we can advise on realistic
> expectations.
>
> Cheers, Tim
>
> On 12 Dec 2009, at 16:10, James Black wrote:
>
> >
> >
> > On Sat, Dec 12, 2009 at 5:12 AM, daiwhea <[email protected]> wrote:
> > I just have a test with some example lift apps. But I'm sorry to say
> > that I cannot achieve this high performance on my dev box(Dell xps
> > 420, 6 G RAM, Quad CPU)
> >
> > my env is Ubuntu 8.10.
> > java version "1.6.0_14"
> > Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
> > Java HotSpot(TM) 64-Bit Server VM (build 14.0-b16, mixed mode)
> >
> > with the latest : lift-archetype-jpa-basic
> >  -DarchetypeArtifactId=lift-archetype-jpa-basic             \
> >  -DarchetypeVersion=1.1-M7
> >
> >
> >   I haven't tried to get it as fast as I can, but the jpa project goes to
> the database, so you may want to use lift-archetype-basic.
> >
> >   Also, the first time you load it there may be a slow down due to
> initializations, so to get a good test you may want to write a unit test
> that will load it perhaps 100 times and then you can get the average,
> fastest and slowest times to get an idea how it is performing.
> >
> >   Also, you may need to subtract any javascript/css files, or, when you
> compare to PHP make certain you have similar files being loaded for PHP for
> a true comparison.
> >
> > --
> >
> > You received this message because you are subscribed to the Google Groups
> "Lift" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> > For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Lift" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to