Académique Documents
Professionnel Documents
Culture Documents
COMPARISON REPORT ON
MySQL and PostgreSQL
NOVEMBER 2009
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Copyright
Table of Contents
SECTION 1 : INTRODUCTION.................................................................................................1
EXECUTIVE SUMMARY........................................................................................................2
INTRODUCTION....................................................................................................................2
DISCLAIMER..........................................................................................................................3
SECTION 2 : COMPARISON / EVALUATION TABLE................................................................4
SOFTWARE USE FOR COMPARISON.................................................................................5
SOFTWARE 1 : MySQL.....................................................................................................6
SOFTWARE 2 : PostgreSQL..............................................................................................6
COMPARISON OF FINDING..................................................................................................7
SECTION 3 : DRUPAL BENCHMARKING...............................................................................17
BENCHMARKING DRUPAL ON POSTGRESQL VS. MYSQL........................................18
BENCHMARK SETUP......................................................................................................18
DRUPAL SETUP...............................................................................................................18
POSTGRESQL CONFIGURATION..................................................................................18
CREATING A POSTGRESQL USER AND DATABASE...................................................19
MYSQL CONFIGURATION..............................................................................................19
RUNNING THE BENCHMARKS......................................................................................20
BENCHMARKING METHODOLOGY...............................................................................20
BASH SCRIPT FOR MYSQL.......................................................................................20
BASH SCRIPT FOR POSTGRESQL...........................................................................21
MYSQL RESULTS............................................................................................................21
POSTGRESQL RESULTS................................................................................................21
SECTION 4 : SUMMARY AND CONCLUSIONS......................................................................22
MYSQL AND POSTGRESQL : SUMMARY.....................................................................23
MYSQL AND POSTGRESQL : CONCLUSIONS.............................................................23
APPENDIX A.........................................................................................................................24
MYSQL AND POSTGRESQL : SPEED............................................................................24
MYSQL AND POSTGRESQL : CONCURRENCY OF 1..................................................25
MYSQL AND POSTGRESQL : CONCURRENCY OF 5..................................................25
APPENDIX B........................................................................................................................26
Result from Apache Benchmark for MySQL with concurrency of 1.................................26
Test 1................................................................................................................................26
Test 2............................................................................................................................28
Test 3............................................................................................................................30
Test 4............................................................................................................................32
Test 5............................................................................................................................34
Result from Apache Benchmark for MySQL with concurrency of 5.................................36
Test 1............................................................................................................................36
Test 2............................................................................................................................38
Test 3............................................................................................................................40
Test 4............................................................................................................................42
Test 5............................................................................................................................44
Result from Apache Benchmark for PostgreSQL with concurrency of 1..........................46
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 1............................................................................................................................46
Test 2............................................................................................................................48
Test 3............................................................................................................................50
Test 4............................................................................................................................52
Test 5............................................................................................................................54
Result from Apache Benchmark for PostgreSQL with concurrency of 5..........................56
Test 1............................................................................................................................56
Test 2............................................................................................................................58
Test 3............................................................................................................................60
Test 4............................................................................................................................62
Test 5 ...........................................................................................................................64
SECTION 5 : REFERENCES....................................................................................................66
REFERENCES.....................................................................................................................67
Index of Tables
SECTION 1 : INTRODUCTION
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
EXECUTIVE SUMMARY
A database can be defined as a set of data that has a regular structure and that is organized
in such a way that a computer can easily find the information stored. Database has become
one of the many essential tools to have in running an organization. Data is a collection of
distinct pieces of information, particularly information that has been formatted (i.e., organized)
in some specific way for use in analysis or making decisions. Those data can be organized
and managed using databases.
Nowadays, the emerging of database software has grown rapidly due to the importance of the
database for organizations. We can choose databases ranging from proprietary to open
source database such as MSSQL, MySQL and PostgreSQL. All databases essentially serve
the same purpose of a storing base for collection of associated files, but performance and
reliability might be differ from one another.
In this report, we will present findings on feature comparisons between MySQL and
PostgreSQL, both are Open Source databases. The findings can be used as references for
agencies that want to adopt or implement Open Source databases for internal or external
systems, email server or portal.
INTRODUCTION
Databases are used every day, sometimes without us realizing. They are everywhere. The
most basic example is a telephone book or a library card index. They can store all sorts of
information, from phone numbers to map grids and references, score cards from sports
games, report cards, etc. They allow quick searching and are great for keeping historical data,
for example weather history. Many websites run using a combination of a database and a
CMS (content management system).
Page 2
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
DISCLAIMER
This reports contains elements which are very technical in nature. People reading this
document are expected to have basic database knowledge. All the data manipulation and
information in this document are base on Research and Development done at OSCC
MAMPU.
Page 3
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
The choice between MySQL and PostgreSQL is a decision many frequently make when
choosing Open Source relational databases management systems. Among many technical
users, MySQL has long been assumed to be the faster but less full-featured of the two
database systems, while PostgreSQL is assumed to be a more densely featured database
system and is often described as an open-source version of Oracle. MySQL is popular stack
among various software projects because of its percieved ease of use, while PostgreSQL has
has a large following among developers comng from an Oracle or traditional SQL Server
backgrounds.
These assumptions, however, are mostly outdated and incorrect. MySQL has come a long
way since in adding advanced functionality while PostgreSQL has dramatically improved its
speed within the last few major releases. Many, however, are unaware of the improvement
and still hold on to stereotypes based on MySQL 4.1 and PostgreSQL 7.4. The current
versions are MySQL 5.1 and PostgreSQL 8.4.
Also, the speed comparisons are mainly between MyISAM and PostgreSQL engines. If the
comparison is between the latest versions of InnoDB and PostgreSQL, PostgreSQL is often
considered faster but no comparison is performed for this report.
Page 5
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
SOFTWARE 1 : MySQL
MySQL is available in both binary and source code form; it may be modified and
redistributed. Its usage terms are regulated by a double GNU General
Public Licence version 2(GPLv2) /proprietary license.
Binaries and source code are available free of charge. As per the GPLv2
licensing terms, any redistribution of the binaries must be accompanied by
the source code from which they are derived, whether original or modified. An exception to
the GPLv2 licensing requirements is made for a few Free Libre Open Source Software
(FLOSS) programs that use MySQL.
Those not wanting to abide to those terms may buy a proprietary license from MySQL
Inc. Support contracts are also available from the same supplier.
MySQL runs on many Unix-like operating systems, is included in most Linux distributions, and
runs natively on Microsoft Windows.
SOFTWARE 2 : PostgreSQL
Binaries and source code are available free of charge. Support contracts are available from
many independent firms.
Page 6
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
COMPARISON OF FINDING
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Raw Speed fast when concurrent access relatively slow at low concurrency
levels are low, and when there levels, but scales well with
are many more reads than increasing load levels, while
writes. On the other hand, it providing enough isolation between
exhibits low scalability with concurrent accesses to avoid
increasing loads and write/read slowdowns at high write/read ratios
ratios (1) (1)
Data Compression supports live compression Support both live compression and
since version 5.0 with the decompression with a fast
ARCHIVE storage engine. compression scheme to fit more
Archive is a write-once, read- data in an allotted disk space. The
many storage engine, designed advantage of compressed data,
for historical data. It besides saving disk space, is that
compresses data up to 90%. It reading data takes less IO, resulting
does not support indexes. In in faster data reads
version 5.1 Archive engine can
be used with partitioning
Page 8
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 9
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Data Storage Engines • MyISAM (with full text search • PostgreSQL can have both full
function) text search and transactions,
• InnoDB (with transactions, referential by default
referential, integrity functions
active)
Numbers of Data 9 1
Page 10
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 11
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 12
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 13
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 14
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Other Objects:
Data Domain No Yes
Cursor Yes Yes
Trigger Yes Yes
Function Yes Yes
Procedure Yes Yes
External routine Yes Yes
Access Control
Native network Yes (with SSL 4.0) Yes
encryption
Brute-force protection No No
Enterprise directory No Yes (LDAP, Kerberos)
compatibility
Password complexity No No
rules
Patch access Partial (no security page) Yes
Run unprivileged Yes Yes
Security Certification No Yes (EAL1 3)
Table 1: Features Comparison between MySQL and PostgreSQL
Page 15
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Note (2): For transactions and referential integrity, the InnoDB table type must be used;
Windows installer sets this as default if support for transactions is selected. On other
operating systems the default table type is MyISAM. However, even the InnoDB table type
permits storage of values that exceed the data range; some view this as violating the Integrity
constraint of ACID.
Note (3): Network traffic could be transmitted in a secure way (not clear-text, on general SSL
encryption). In order to have precise option as default, the included options or extra modules
must be purchased.
Page 16
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
BENCHMARK SETUP
For the hardware, I used my notebook, which is an Intel(R) Core(TM)2 Duo CPU T7100 @
1.80GHz, with 3 GB of RAM.
MySQL is 5.1.37-1ubuntu5, and PostgreSQL is 8.4.1-1, which are what comes with this distro
version. PHP is 5.2.10-2ubuntu6.3, with APC (Alternative PHP Cache) 3.0.19-2 installed and
configured.
DRUPAL SETUP
The setup was a multisite install, so both sites are running from the same code base. One
was configured for MySQL and one for PostgreSQL.
POSTGRESQL CONFIGURATION
Setting up a PostgreSQL database took some digging, but once the steps are figured out,
they are fairly simple.
No other changes from the default settings provided by Ubuntu are made.
Page 18
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
The steps to create a database in PostgreSQL are documented in the INSTALL.pgsql.txt that
comes with Drupal.
However, I used a slightly different approach, with the same end result.
For creating a user and database, assuming we want a user called drupal and a password
of drupal123, you do the following in a shell:
$ sudo bash
# su - postgres
$ createuser -DRS username
$ createdb -O username drupal
$ psql
ALTER USER USERNAME WITH UNENCRYPTED PASSWORD 'drupal123';
http://localhost/drupal6/install.php
then proceed with the web base installation and key in the credential about
MySQL and PostgreSQL such as Username, Password, Host, Port and etc so Drupal
will create the tables for you in the database.
MYSQL CONFIGURATION
The default configuration supplied with Ubuntu was used. This has the query cache turned on
by default. All the tables are MyISAM.
Page 19
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
The benchmark consisted of running two benchmarks using ab on each virtual host.
BENCHMARKING METHODOLOGY
For setting up data for this test, I insert data into database, bash script was used to create
2000 comments and manually add 1 page. Im not using the Drupal's Devel Module to
generate content and pages because its need to amend the default configuration for php.ini .
#!/bin/bash
do
echo $i
mysql -usql -e"use drupal6;INSERT INTO comments (pid, nid, uid, subject, comment,
hostname, timestamp, status, format, name, mail, homepage) VALUES (0, 1, 1, 'Testing
Comment', 'Benchmark Testing Comment 123456', '::1', 1260193872, 0, 1, 'fenris', '', '')"
done
Page 20
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
#!/bin/bash
do
echo $i
sudo -u postgres psql -U postgres -d drupal -c "INSERT INTO comments (pid, nid, uid,
subject, comment, hostname, timestamp, status, format, thread, name, mail, homepage)
VALUES (0, 1, 1, 'Testing Comment', 'Benchmark Testing Comment 123456',
'::1',1260193872, 0, 1, '01/', 'fenris', 'mohdfenrisgmail.com', '')"
done
MYSQL RESULTS
When hitting the front page of the site, the MySQL site shows this:
Page execution time was 88.57 ms. Executed 36 queries in 10.73 milliseconds.
POSTGRESQL RESULTS
When hitting the front page of the site, the PostgreSQL site shows this:
Page execution time was 221.52 ms. Executed 38 queries in 102.16 milliseconds.
Page 21
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
MySQL was built for speed, to the detriment of everything else. SQL standard features like
transactions, referential integrity and others have been grafted over only after considerable
arm twisting.
However, it is only fast at low concurrency levels, and reports of instability, low robustness
and scalability keep coming out.
PostgreSQL was built strictly following the ACID model, with an emphasis on data integrity
and SQL standard compliance, speed notwithstanding. It then underwent optimizations and
speedups, while at the same time adding new features to its already large set.
Today it is robust, standards compliant and well featured. While still being relatively slow at
low concurrency levels, it scales well with increasing load levels.
The definite conclusion from these benchmarks is that out of the box, MySQL is configured to
run faster than PostgreSQL.
FUTURE CONSIDERATIONS
Page 23
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
APPENDIX A
Table 3: Data collection using Mozilla Firefox 3.5.x with YSLOW extension
Page 24
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 25
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
APPENDIX B
Test 1
Concurrency Level: 1
Time taken for tests: 39.555 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 25.28 [#/sec] (mean)
Time per request: 39.555 [ms] (mean)
Page 26
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Time per request: 39.555 [ms] (mean, across all concurrent requests)
Transfer rate: 133.86 [Kbytes/sec] received
Page 27
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 2
Concurrency Level: 1
Time taken for tests: 39.141 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 25.55 [#/sec] (mean)
Time per request: 39.141 [ms] (mean)
Time per request: 39.141 [ms] (mean, across all concurrent requests)
Transfer rate: 135.28 [Kbytes/sec] received
Page 28
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Connect: 0 0 0.0 0 0
Processing: 35 39 5.9 37 95
Waiting: 35 39 5.9 37 95
Total: 35 39 5.9 37 95
Page 29
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 3
Concurrency Level: 1
Time taken for tests: 41.062 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 24.35 [#/sec] (mean)
Time per request: 41.062 [ms] (mean)
Time per request: 41.062 [ms] (mean, across all concurrent requests)
Transfer rate: 128.95 [Kbytes/sec] received
Page 30
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Connect: 0 0 0.0 0 0
Processing: 35 41 7.1 39 106
Waiting: 35 41 6.9 38 106
Total: 35 41 7.1 39 106
Page 31
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 4
Concurrency Level: 1
Time taken for tests: 39.140 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 25.55 [#/sec] (mean)
Time per request: 39.140 [ms] (mean)
Time per request: 39.140 [ms] (mean, across all concurrent requests)
Transfer rate: 135.28 [Kbytes/sec] received
Page 32
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Connect: 0 0 0.0 0 1
Processing: 35 39 4.9 38 90
Waiting: 23 39 5.0 37 89
Total: 35 39 4.9 38 90
Page 33
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 5
Concurrency Level: 1
Time taken for tests: 40.438 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 24.73 [#/sec] (mean)
Time per request: 40.438 [ms] (mean)
Time per request: 40.438 [ms] (mean, across all concurrent requests)
Transfer rate: 130.94 [Kbytes/sec] received
Page 34
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Connect: 0 0 0.0 0 0
Processing: 36 40 6.1 38 103
Waiting: 35 40 6.0 38 103
Total: 36 40 6.1 38 103
Page 35
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 1
Concurrency Level: 5
Time taken for tests: 21.472 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 46.57 [#/sec] (mean)
Time per request: 107.361 [ms] (mean)
Time per request: 21.472 [ms] (mean, across all concurrent requests)
Transfer rate: 246.59 [Kbytes/sec] received
Page 36
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 37
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 2
Concurrency Level: 5
Time taken for tests: 22.806 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 43.85 [#/sec] (mean)
Time per request: 114.029 [ms] (mean)
Time per request: 22.806 [ms] (mean, across all concurrent requests)
Transfer rate: 232.18 [Kbytes/sec] received
Page 38
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 39
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 3
Concurrency Level: 5
Time taken for tests: 22.620 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 44.21 [#/sec] (mean)
Time per request: 113.100 [ms] (mean)
Time per request: 22.620 [ms] (mean, across all concurrent requests)
Transfer rate: 234.08 [Kbytes/sec] received
Page 40
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 41
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 4
Concurrency Level: 5
Time taken for tests: 22.801 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 43.86 [#/sec] (mean)
Time per request: 114.003 [ms] (mean)
Time per request: 22.801 [ms] (mean, across all concurrent requests)
Transfer rate: 232.23 [Kbytes/sec] received
Page 42
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 43
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 5
Concurrency Level: 5
Time taken for tests: 21.559 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5422000 bytes
HTML transferred: 4886000 bytes
Requests per second: 46.38 [#/sec] (mean)
Time per request: 107.794 [ms] (mean)
Time per request: 21.559 [ms] (mean, across all concurrent requests)
Transfer rate: 245.60 [Kbytes/sec] received
Page 44
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 45
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 1
Concurrency Level: 1
Time taken for tests: 182.178 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 5.49 [#/sec] (mean)
Time per request: 182.178 [ms] (mean)
Time per request: 182.178 [ms] (mean, across all concurrent requests)
Transfer rate: 29.04 [Kbytes/sec] received
Page 46
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 47
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 2
Concurrency Level: 1
Time taken for tests: 183.131 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 5.46 [#/sec] (mean)
Time per request: 183.131 [ms] (mean)
Time per request: 183.131 [ms] (mean, across all concurrent requests)
Transfer rate: 28.89 [Kbytes/sec] received
Page 48
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 49
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 3
Concurrency Level: 1
Time taken for tests: 180.588 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 5.54 [#/sec] (mean)
Time per request: 180.588 [ms] (mean)
Time per request: 180.588 [ms] (mean, across all concurrent requests)
Transfer rate: 29.29 [Kbytes/sec] received
Page 50
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 51
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 4
Concurrency Level: 1
Time taken for tests: 178.048 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 5.62 [#/sec] (mean)
Time per request: 178.048 [ms] (mean)
Time per request: 178.048 [ms] (mean, across all concurrent requests)
Transfer rate: 29.71 [Kbytes/sec] received
Page 52
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 53
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 5
Concurrency Level: 1
Time taken for tests: 178.096 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 5.61 [#/sec] (mean)
Time per request: 178.096 [ms] (mean)
Time per request: 178.096 [ms] (mean, across all concurrent requests)
Transfer rate: 29.70 [Kbytes/sec] received
Page 54
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 55
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 1
Concurrency Level: 5
Time taken for tests: 91.875 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 10.88 [#/sec] (mean)
Time per request: 459.375 [ms] (mean)
Time per request: 91.875 [ms] (mean, across all concurrent requests)
Transfer rate: 57.58 [Kbytes/sec] received
Page 56
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 57
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 2
Concurrency Level: 5
Time taken for tests: 90.181 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 11.09 [#/sec] (mean)
Time per request: 450.907 [ms] (mean)
Time per request: 90.181 [ms] (mean, across all concurrent requests)
Transfer rate: 58.66 [Kbytes/sec] received
Page 58
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 59
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 3
Concurrency Level: 5
Time taken for tests: 90.854 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 11.01 [#/sec] (mean)
Time per request: 454.268 [ms] (mean)
Time per request: 90.854 [ms] (mean, across all concurrent requests)
Transfer rate: 58.23 [Kbytes/sec] received
Page 60
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 61
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 4
Concurrency Level: 5
Time taken for tests: 89.570 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 11.16 [#/sec] (mean)
Time per request: 447.850 [ms] (mean)
Time per request: 89.570 [ms] (mean, across all concurrent requests)
Transfer rate: 59.06 [Kbytes/sec] received
Page 62
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 63
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Test 5
Concurrency Level: 5
Time taken for tests: 91.064 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 5417000 bytes
HTML transferred: 4881000 bytes
Requests per second: 10.98 [#/sec] (mean)
Time per request: 455.322 [ms] (mean)
Time per request: 91.064 [ms] (mean, across all concurrent requests)
Transfer rate: 58.09 [Kbytes/sec] received
Page 64
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
Page 65
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
SECTION 5 : REFERENCES
MALAYSIAN PUBLIC SECTOR OPEN SOURCE SOFTWARE INITIATIVE PHASE II
Phase II : Comparison Report On MySQL and PostgreSQL
REFERENCES
Page 67