Mailinglisten-Archive |
Michael Renner wrote:
>
> On Tue, 07 Dec 1999, Michael Weber wrote:
> > Moin,
> >
> > wie messt Ihr eigentlich so im allgemeinen die
> > Laufzeit Eurer Scripte ? Ich behelfe mich im
> > Augenblick mit Ausgabe des Unix-Timestamps am
> > Anfang und Ende des Scriptes mit Ausgabe der
> > Zeitdifferenz...
> Moin,
> folgendes habe ich mal im Netz gefunden:
> messzeit.inc:
Im Apache bin-Verzeichnis ist ab (Apachebench). Mit diesem Programm kann
man die Zeiten noch besser messen.
[egon_(at)_dilbert;22]/usr/local/src/apache-1.3/bin$ ./ab -h
Usage: ./ab [options] [http://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make
-t timelimit Seconds to max. wait for responses
-p postfile File containg data to POST
-T content-type Content-type header for POSTing
-v verbosity How much troubleshooting info to print
-w Print out results in HTML tables
-i Use HEAD instead of GET
-x attributes String to insert as table attributes
-y attributes String to insert as tr attributes
-z attributes String to insert as td or th attributes
-C attribute Add cookie, eg. 'Apache=1234. (repeatable)
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding:
zop'
Inserted after all normal header lines. (repeatable)
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
-p attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
-V Print version number and exit
-k Use HTTP KeepAlive feature
-h Display usage information (this message)
-Egon
--
Six Offene Systeme GmbH · Sielminger Straße 63 · D-70771 L.-Echterdingen
Fon +49 711 9 90 91 64 · http://www.six.de/
Fax +49 711 9 90 91 99 · mailto:egon_(at)_six.de
php::bar PHP Wiki - Listenarchive