PostgreSQL pgbench [pts/pgbench]

This is a simple benchmark of PostgreSQL using pgbench.

This benchmark test was uploaded by Phoronix Test Suite.

Looking For The Best Performance?

If you want to see how many different systems compare performance-wise for this test profile, visit the performance showdown page.

Revision History

pts/pgbench-1.9.1 [04 Oct 2019 06:53:32 EDT]
- Fix heavy contentiob by going off physical CPU cores.

pts/pgbench-1.9.0 [03 Oct 2019 09:57:40 EDT]
- Update against PostgreSQL 12.0. NOTE: still waiting on official Windows postgresql 12 release binaries.

pts/pgbench-1.8.7 [29 Mar 2019 03:20:12 EDT]
- Update download URLs.

pts/pgbench-1.8.6 [07 Dec 2018 12:47:49 EST]
- Enable BSD build support.

pts/pgbench-1.8.5 [07 Sep 2018 09:43:34 EDT]
- Add bc as an external dependency.

pts/pgbench-1.8.4 [25 Mar 2018 13:10:40 EDT]
- Fix the bundled patch allowing PostgreSQL to run as root.

pts/pgbench-1.8.3 [22 Mar 2018 18:07:18 EDT]
- Adjust run count as was bumped lower during debugging.

pts/pgbench-1.8.2 [22 Mar 2018 18:06:30 EDT]
- Create db directory on Windows otherwise the test seems to sometimes fail, also add note about MSVCR120.dll needing to be on system for PostgreSQL to work.

pts/pgbench-1.8.1 [01 Mar 2018 11:46:17 EST]
- Tidy up the Windows support, appears to be good to go.

pts/pgbench-1.8.0 [01 Mar 2018 11:26:11 EST]
- Update against upstream PostgreSQL 10.3, add initial Windows bits.

pts/pgbench-1.7.0 [14 Oct 2017 15:23:03 EDT]
- Updating against postgresql 10.0

pts/pgbench-1.6.0 [19 May 2017 11:57:32 EDT]
- Update against upstream PostgreSQL 9.6.3.

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

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

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

pts/pgbench-1.4.0 [11 Apr 2012 10:15:04 EDT]
- 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 EDT]
- Update PostgreSQL to version 9.0.4.

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

Recent Results With This Test

Compare

1 System - 194 Benchmark Results

4 x Intel Xeon Gold 5218R - Intel 440BX - Intel 440BX

CentOS Linux 8 - 4.18.0-193.6.3.el8_2.x86_64 - GCC 8.3.1 20191121

1 System - 1 Benchmark Result

4 x AMD Ryzen 7 1700 Eight-Core - Intel 440BX - Intel 440BX

Debian 10 - 4.19.0-10-amd64 - GCC 8.3.0

1 System - 45 Benchmark Results

AMD EPYC - Hetzner vServer v20171111 - Intel 82G33

Ubuntu 20.04 - 5.4.0-42-generic - GCC 9.3.0

1 System - 1 Benchmark Result

Intel Xeon Platinum 8124M - Amazon EC2 c5.large - Intel 440FX 82441FX PMC

Ubuntu 20.04 - 5.4.0-1021-aws - GCC 9.3.0

1 System - 1 Benchmark Result

ARMv8 Neoverse-N1 - Amazon EC2 c6g.large - Amazon Device 0200

Ubuntu 20.04 - 5.4.0-1021-aws - GCC 9.3.0

1 System - 35 Benchmark Results

Intel Core 2 T7200 - 2048MB - 180GB

NetBSD 9.0_STABLE - 9.0_STABLE - X Server 1.20.5

1 System - 1 Benchmark Result

2 x Intel Xeon E5-2650 0 - HP ProLiant DL380p Gen8 - Intel Xeon E5

Debian 10 - 4.19.0-10-amd64 - GCC 8.3.0

1 System - 37 Benchmark Results

Unknown - 8GB - 117GB

NetBSD 9.0_STABLE - 9.0_STABLE - X Server 1.20.5

2 Systems - 32 Benchmark Results

Intel Core i7-4770 - ASUS H87M-E - Intel 4th Gen Core DRAM

Debian GNU - 5.4.44-2-pve - GCC 8.3.0

5 Systems - 521 Benchmark Results

Intel Xeon Gold 5217 - GIGABYTE MD61-SC2-00 v01000100 - Intel Sky Lake-E DMI3 Registers

Ubuntu 20.04 - 5.8.0-050800rc6daily20200721-generic - GNOME Shell 3.36.1

1 System - 4 Benchmark Results

AMD Ryzen 7 1700X Eight-Core - ASUS PRIME B350M-A - AMD 17h

ManjaroLinux 20.0.3 - 5.4.52-1-MANJARO - X Server 1.20.8

1 System - 1 Benchmark Result

Intel Core i5-8265U - LENOVO 20NB0056RI - 32GB

Ubuntu 20.04 LTS - 5.4.0-33-generic - GCC 9.3.0

1 System - 326 Benchmark Results

Intel Core i5-10600K - ASUS PRIME Z490M-PLUS - Intel Comet Lake PCH

Ubuntu 20.04 - 5.4.0-40-generic - GNOME Shell 3.36.3

1 System - 11 Benchmark Results

ARMv8 Cortex-A73 - Hardkernel ODROID-N2 - 4096MB

Ubuntu 20.04 - 4.9.205-odroidn2-arm64 - GCC 9.3.0 + Clang 10.0.0-4ubuntu1 + LLVM 10.0.0

Most Popular Results With This Test

Compare

11 Systems - 26 Benchmark Results

2 x Intel Xeon Gold 6138 - TYAN S7106 - Intel Device 2020

Ubuntu 17.10 - 4.13.6-041306-generic - GNOME Shell 3.26.1

1 System - 26 Benchmark Results

Intel Core i7 920 - innotek VirtualBox v1.2 - Intel 440FX - 82441FX PMC

LinuxMint 11 - 2.6.38-8-generic - GNOME 2.32.1

1 System - 34 Benchmark Results

AMD FX -8150 Eight-Core - ASUS SABERTOOTH 990FX - 4096MB

Gentoo Base release 2.1 - 3.0.6-gentoo - KDE 4.7.2

6 Systems - 30 Benchmark Results

Intel Core i5-2500K - SAPPHIRE Pure Black P67 Hydra - Intel Sandy Bridge

Ubuntu 10.10 - 2.6.38-999-generic - GNOME 2.32.0

1 System - 84 Benchmark Results

4 x Intel Xeon X7550 - Dell 0P658H - Intel 5520

Ubuntu 10.10 - 2.6.35-25-server - matrox

1 System - 61 Benchmark Results

Intel Core 2 Duo - Mac mini - NVIDIA MCP79

Mac OS X 10.7 - 11.0.0 - X Server 1.9.4

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