Jump to content

[SOLVED] Anyone done some benchmarks or compared work before?


Recommended Posts

I have done some tests before mysql and mysqli. mysqli wins over mostly on insert and update. On read, mysql seems to be better tha mysqli. This something I have done before.


I just read a post here that uses PDO. I haven't used it before. I did some readings about it and also some benchmarks done by other people but their results are somehow varying.


What I want to ask here, is if anyone has used both PDO and mysqli before. If so, can you share your thoughts about this and your suggestion and what makes the other better over the other. I am currently using mysqli and asking myself whether I need to shift to PDO or not.


Thanks for your thoughts.

Link to comment
Share on other sites

PDO is meant to be abstract (able to talk to multiple DBMS systems within one protocol) and therefore you're going to lose some of the database specific functionality.  In my opinion, if your application will only ever use MySQL, why would you ever go to an abstract method for communicating with that database?


Performance aside, that should be enough to keep you away from PDO.  PDO is also not as easy to use and any performance gain, if there is one, would be negligible if your application is written correctly and your database is normalized and indexed properly.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.