News Feed
Jobs Feed
Sections




News Archive
John Walsh's Blog:
Benchmark - MYSQL vs MYSQLi
June 12, 2007 @ 13:34:00

John Walsh got to thinking about performance when it comes to the MySQL functions versus MySQLi in PHP - this quick post is the result:

I've decided that a little investigation in weather it can connect,query and close faster than the MYSQL function I prefer the MYSQLi version as the _connect function is a lot more organised with the DB select in it.

The code used for the benchmarks is simple - just a connect, query and close (no fetch). The results of running each 1500 times shows that, by a pretty narrow margin, the MySQL extension comes in around 92 milliseconds faster than MySQLi.

1 comment voice your opinion now!
mysql benchmark mysqli query connect close mysql benchmark mysqli query connect close


blog comments powered by Disqus

Similar Posts

Developer Tutorials Blog: Running background processes in PHP

Ldeveloper Tech Blog: PHP - Fatal error: Uncaught SoapFault exception: Could not connect to host...

PHPMaster.com: Avoid the Original MySQL Extension, Part 1

John Walsh's Blog: Benchmark - MYSQL vs MYSQLi

Wolfgang Drews\' Blog: Some thoughts on indexes & searching in MySQL / PHP


Community Events











Don't see your event here?
Let us know!


language tool podcast framework development database interview composer release example introduction community code testing zendframework2 functional conference object series opinion

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework