Last month when I've published my results obtained with
PostgreSQL 8.3.7 on db_STRESS benchmark I was surprised they were
much lower comparing to MySQL, as well some signs alarmed me
there is something goes wrong with PostgreSQL... So, once it was
possible, I took my time and prepared another testing on the same
M5000 server I published MySQL results last week.
I would say I discovered a lot of new things benchmarking
PostgreSQL ! I'm not kidding :-) And without going too much in
detail, the main gain seems to me of MySQL over PostgreSQL was a
lower cost on executing a single query. The query in question was
the second SELECT in db_STRESS.
SELECT-2 execution time:
- MySQL 5.4: 0.44ms
- PostgreSQL 8.4: 1.3ms
- PostgreSQL 8.4 prepared statement: 0.98ms
Again, if PostgreSQL being slower on a single query scaled much
more far on say 24 cores - it'll be not really a problem. But …
[Read more]