PostgreSQL pgbench [pts/pgbench]

This is a simple benchmark of PostgreSQL using pgbench.

This benchmark test was uploaded by Phoronix Test Suite.

Revision History

pts/pgbench-1.5.2 [08 Oct 2015 16:05:08 UTC]
- Update download links, advertise BSD compatibility.

pts/pgbench-1.5.1 [09 Jun 2015 21:16:09 UTC]
- Hack up pgbench to let it run as root

pts/pgbench-1.5.0 [09 Jun 2015 20:05:58 UTC]
- Major update/overhaul of pgbench PostgreSQL benchmark.

pts/pgbench-1.4.0 [11 Apr 2012 10:15:04 UTC]
- Move back to older PostgreSQL 8.4.11 upstream server version to work around PostgreSQL 9.x issue right now dealing with the plpg

pts/pgbench-1.3.0 [27 Aug 2011 16:23:30 UTC]
- Update PostgreSQL to version 9.0.4.

pts/pgbench-1.2.0 [06 Dec 2010 15:16:36 UTC]
- Initial import into OpenBenchmarking.org

Recent Results With This Test

Compare

8 Systems - 28 Benchmark Results

1 System - 2 Benchmark Results

1 System - 2 Benchmark Results

6 Systems - 28 Benchmark Results

1 System - 39 Benchmark Results

1 System - 44 Benchmark Results

1 System - 45 Benchmark Results

1 System - 15 Benchmark Results

1 System - 36 Benchmark Results

1 System - 39 Benchmark Results

1 System - 44 Benchmark Results

1 System - 45 Benchmark Results

1 System - 5 Benchmark Results

1 System - 5 Benchmark Results

Most Popular Results With This Test

Compare

1 System - 26 Benchmark Results

1 System - 34 Benchmark Results

6 Systems - 30 Benchmark Results

1 System - 84 Benchmark Results

1 System - 61 Benchmark Results

1 System - 61 Benchmark Results

1 System - 176 Benchmark Results

Find More Test Results


User Comments

Centos 5.6 notes, workarounds

Do not install this benchmark when running as root. The automated postgres database setup will silently error out, as it insists on being a non-root user. You can install Phoronix as root, but switch to another user to run the "/usr/bin/phoronix-test-suite install pts/pgbench" command. You can't use the benchmark after it's "installed" as root, because the "installation" is local to the user, in ~/.phoronix-test-suite/ directory, and setup will have failed if you do it as root.

Secondly, the benchmark will fail unless you create the following file:

/etc/ld.so.conf.d/postgresql.conf

..and put in it the following line(s) (where /home/YOURUSER is the home directory of the user that you are about to run the install as:

/home/YOURUSER/.phoronix-test-suite/installed-tests/pts/pgbench-1.3.0/pg_/lib/
/home/YOURUSER/.phoronix-test-suite/installed-tests/pts/pgbench-1.3.0/pg_/lib/postgresql/

Cheers,

-Craig @ Halcyon Canada

Post by craighalcyon on 02 December 2011, 11.35.

Quick test for different filesystems.

If you'd like to isolate your I/O devices for this test, a quick way to do so is to create a new user with home directory on the FS you'd like to bench. Then su to that user and install/run the test. Postgres will be installed in ~/.phoronix-test-suite. You may even `usermod -d /tmp test` if you want to run from tmpfs and skip disk I/O altogether. Just beware that if your /tmp is tmpfs (RAM) you will lose all contents after a reboot.

This is a great test. Thanks to the developers. I use it often.

Post by boeroboy on 21 January 2014, 14.26.

Setup on Ubuntu 14

Ubuntu 14.04 comes with GCC 4.8 and the installation of this bench will silently fail. You'll get an error message that the benchmark could not be completed.
Install GCC 4.6 (sudo apt-get install gcc-4.6 g++-4.6) and set it as active (sudo update-alternatives --config gcc). After that, re-install pts/pgbench and you're good to go.

Post by ervin on 17 October 2014, 05.36.

Post A Comment