PostgreSQL性能测试(转)

http://www.randombugs.com/linux/mysql-postgresql-benchmarks.html

很迷惑为什么PostgreSQL这样优秀的一个项目总是不被接受,网上搜出的和MySQL的对比都在说PostgreSQL比MySQL慢得多,而证据都是三四年前的某个测试数据。昨晚找到了一个09年6月的帖子,测试方式还算比较严谨,数据在上面的链接里可以看到,作者得出了以下结论:

  • MySQL 5.0.51a-24+lenny1 – Debian stable version is the worst performer (also the MySQL version is a little bit old).
  • MySQL 5.1.30/InnoDB 1.0.3 with Google SMP patch – Compiled by SUN and InnoDB compiled by ORACLE outperform PostgreSQL in some cases.
  • PostgreSQL 8.3.7-0lenny1 – Debian Stable version – It’s a top performer from the Debian standard distro and is out performed only by the latest InnoDB 1.0.3.
  • Differences between PostgreSQL and MySQL 5.1.30/InnoDB 1.0.3 are very small
  • PostgreSQL is outperforming any MySQL version on Creating, Loading, Created Indexes operations (this can be very usefull on a DB recovery).
  • I don’t know why PostgreSQL is performing bad on bulk_delete() bulk_modify() querys … is possible to have a glitch in my configurations?

除了一个批量删除和批量修改的操作PostgreSQL慢的有点离谱(和MySQL相差6000多倍),应该能算是个Bug了,其他的性能大多还是比MySQL要好的。当然这里都是和InnoDB比较的,若是和MyISAM相比的话,慢点儿也是正常,因为MyISAM的功能太少,少了很多必要的操作和约束,对于任何一个业务系统,没有事务支持都是肯定不行的,不过这在MySQL的主要应用领域——网站上并不是个大问题。

This entry was posted in 计算机技术 and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Comment

  1. Posted 2010年06月10日 at 10:57 | Permalink

    正在考虑是否使用 PostgreSQL

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>