PHP MySQL Benchmark Tool v. 0.1

Test Rows:
(* INNODB is relatively slow if you go over a few hundred rows)
Table Type:
MyISAM
InnoDB
Memory

Testing a(n) MYISAM table using 500 rows.

Successfully created database speedtestdb
Sucessfully created table speedtesttable

This MySQL instance does NOT support MYISAM tables
Table Type Verified: ..


Done. 500 inserts in 0.05546 seconds or

9016 inserts per second.

Done. 500 row reads in 0.00018 seconds or

2777778 row reads per second.

Done. 500 updates in 0.00016 seconds or

3125000 updates per second.



Typical results: On a 3.1Ghz Core2 Duo with a run of the mill 7200 RPM hard drive I'm getting:
15,500 MyISAM inserts per second | 560,000 row reads per second | 100,000 updates per second
95 InnoDB inserts per second | 543,478 row reads per second | 30,000 updates per second

CC licensed photo by Getty on Flickr. Click it for more info. This code is BSD licensed.

Copyright (c) 2008, Kirk F. House
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.