PHP/MySQL Performance Testing with Just PHP

Posted by Mike Gifford on Server Fault See other posts from Server Fault or by Mike Gifford
Published on 2012-09-08T15:33:29Z Indexed on 2012/09/08 15:39 UTC
Read the original article Hit count: 470

Filed under:
|
|
|
|

I'm trying to diagnose a server where the website is loading very slowly, but unfortunately my client has only provided me with FTP access.

I've got FTP access so I can upload PHP scripts, but can't set up any other server side tools.

I have access to phpMyAdmin, but not direct access to the MySQL server. It is also unfortunately a Windows server (and we've been a Linux shop for over a decade now).

So, if I wan to evaluate MySQL & disk speed performance through PHP on a generic server, what is the best way to do this?

There are already tools like: https://github.com/raphaelm/php-benchmark or https://github.com/InfinitySoft/php-benchmark

But I'm surprised there isn't something that someone has already set up & configured to just run through and do some basic testing of a server's responsiveness.

Every time we evaluate a new server environment it's handy to be able to compare it to an existing one quickly to see if there are any anomalies. I guess I'd just hoped that someone else had written up a script to do this already. I know I have, but that was before Github when there was a handy place to post scraps of code like this.

Originally posted in http://stackoverflow.com/questions/12321498/php-mysql-performance-testing-with-just-php but it was recommended that I re-post it here.

© Server Fault or respective owner

Related posts about apache2

Related posts about mysql