Test and comparison of MySQL and PDO

Source: Internet
Author: User
Time occurrence time class type case test case name step test case execution times runtime total test time memory (peak) maximum memory connection time consumed: 2010-07-0110:53:40, class: pdo, case: connect, step: 100000, runtime: 21.52, memory (pea description
Time occurrence time
Class Type
Case test case name
Number of executed step cases
Total runtime test time
Maximum memory consumed by memory (peak)

Connection

Time: 10:53:40, class: pdo, case: connect, step: 100000, runtime: 21.52, memory (peak): 262144
Time: 10:54:08, class: mysql, case: connect, step: 100000, runtime: 4.42, memory (peak): 262144

Conclusion: PDO efficiency is lower in connection.


Insert

Time: 10:37:55, class: pdo, case: insert, step: 100000, runtime: 7.96, memory (peak): 262144
Time: 10:38:03, class: mysql, case: insert, step: 100000, runtime: 7.93, memory (peak): 262144

Conclusion: The two are similar.

Query

Time: 11:06:41, class: pdo, case: select, step: 100000, runtime: 10.48, memory (peak): 262144
Time: 11:06:54, class: mysql, case: select, step: 100000, runtime: 10.07, memory (peak): 262144

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.