[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: science fair project



This is probably something which can be dragged to unbelievable lengths
to ensure a controlled environments - but I'm sure there are limits to
which you should keep within. 

Are you planning on running the query more than once and averaging? As I
seem to remember that JSP will spend a little longer serving the first
request while it compiles the byte-code for the page, and will be faster
at each time..

.. In a big mysql database I've got, I ran the query
SELECT * FROM Img LIMIT 0,1 : first query ran at 0.80sec,
second time round was 0.01sec- so take a look at the mySQL documentation
to see if it offers help.... I think a similair discussion was had a
while back on a PHP list.


Theres A few things to think about.


Adam


On Tue, 2002-01-01 at 21:18, Mark Neidorff wrote:
> Well, then you are testing the system in, essentially what is a single
> user mode. That is not a good model for testing server applications whose
> spped and efficiency varies in the real world of multi-tasking and
> multi-user access.  (Don't forget to turn off EVERYTHING run by cron
> and at)
> 
> Mark
> 
> 
> On 1 Jan 2002, Brandon Hale wrote:
> 
> > I plan to turn off all non-essential daemons during testing, so that
> > only the processes I am using run... is this still a problem? I was
> > aware processes would need to be held constant.
> > 
> > On Tue, 2002-01-01 at 13:51, Mark Neidorff wrote:
> > > Problem is under linux you don't know what other processes might be
> > > running at any given time.  These will affect the timing that you are
> > > trying to measure.  Unfortunately, there is no easy and accurate answer.
> > > 
> > > Mark
> > > 
> > > On 1 Jan 2002, Brandon Hale wrote:
> > > 
> > > > Hey all.
> > > > 
> > > > Im currently working on my high school science project and am hoping
> > > > someone can help me out. Here's the project overview:
> > > > 
> > > > I am building a simple web application in several languages (PHP, JSP,
> > > > Perl and ColdFusion).  It takes data from MySQL, builds an HTML doument
> > > > from it, and sends it off to Apache.  The idea is to see which language
> > > > is fastest.
> > > > 
> > > > The problem I have is the timing.  I need to get an accurate time
> > > > between the HTTP request is sent, and the time the first HTTP response
> > > > headers start coming back.  This way I can compare the times to see
> > > > which language adds the most execution time.
> > > > 
> > > > Anyone have an idea how to implement this? I'm thinking a simple Perl
> > > > script will do it, but I don't know how to go about it.  Or maybe
> > > > someone knows of another program that will do this.
> > > > 
> > > > TIA,
> > > > Brandon Hale
> > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > enigma-list mailing list
> > > > enigma-list redhat com
> > > > https://listman.redhat.com/mailman/listinfo/enigma-list
> > > > 
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > enigma-list mailing list
> > > enigma-list redhat com
> > > https://listman.redhat.com/mailman/listinfo/enigma-list
> > 
> > 
> > 
> > _______________________________________________
> > enigma-list mailing list
> > enigma-list redhat com
> > https://listman.redhat.com/mailman/listinfo/enigma-list
> > 
> 
> 
> 
> _______________________________________________
> enigma-list mailing list
> enigma-list redhat com
> https://listman.redhat.com/mailman/listinfo/enigma-list

Attachment: pgp00000.pgp
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]