measure performance of a php-script with apache ab

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

 



Hi

I want to measure the performance of a specific php-script. That script
performs, based on session information (that I copied directly into that
file for test purposes), some calculations and database queries. When I
look at the script in a browser, it does what it should and takes about
2 seconds to finish (slow development machine). When I run the script
with ab (ab -n 1000 -c 10 http://localhost/path/to/script.php) I get a
measure for "requests per second" of 500-900. I asume, that no
parsing/executing of the script is done. To check, I put in a db-write
at the beginning of the script which writes, if the page is called in
the browser and doesn't, if it is called by ab.
Does anyone know, why the php-part is not executed when I use ab or
where I should start off to find the problem?

Cheers

Stefani

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux