Lab Tracker · database benchmark

PostgreSQL performance by version: 14 to 19, benchmarked

6 versions of PostgreSQL, from 14 to 19, measured on the same machine with the same script in one run, so every version meets the same conditions.

  • Last run Nov 23, 2026
  • Versions 14.25, 15.20, 16.16, 17.12, 18.7 and 19.0
  • Setup one machine, one script

See the results How we tested Raw data (JSON)

Every workload, every version

Settings differ: JIT on in 14.25, 15.20, 16.16, 17.12 and 18.7; off in 19.0.

Median of the rounds, ± the spread between them. Green and amber cells differ by 10% or more from the first value of a row with a clear change; the last column compares 19.0 with 14.25.

Every result: the median of each version and the change from 14.25 to 19.0
Workload14.2515.2016.1617.1218.719.014.25 → 19.0
Load 1M pgbench rows807 ms ±47.3%766 ms ±32.4%648 ms ±170.8%650 ms ±168.8%669 ms ±90.8%682 ms ±74.7% no clear difference
pgbench read-only, 8 clients, 40,000 transactions703 ms ±1.0%704 ms ±1.4%706 ms ±1.3%700 ms ±1.3%710 ms ±0.9%717 ms ±1.5% no clear difference
pgbench read-write, 8 clients, 8,000 transactions910 ms ±0.8%913 ms ±2.0%917 ms ±3.8%915 ms ±3.4%925 ms ±1.0%934 ms ±1.7% no clear difference
GROUP BY over 10M rows470 ms ±15.7%470 ms ±23.5%445 ms ±29.7%408 ms ±35.8%452 ms ±25.7%387 ms ±4.5% no clear difference
Filtered count over 10M rows216 ms ±5.3%222 ms ±4.6%225 ms ±5.9%189 ms ±6.9%199 ms ±2.5%175 ms ±4.9% 18.9% faster
Top 100 by sort over 10M rows328 ms ±3.5%334 ms ±4.6%331 ms ±4.7%294 ms ±4.5%312 ms ±2.9%270 ms ±5.5% 17.5% faster
Expression-heavy aggregate over 10M rows774 ms ±2.9%763 ms ±3.2%761 ms ±4.3%718 ms ±1.9%715 ms ±2.6%914 ms ±1.4% 18.0% slower

Defaults, 14.25 → 19.0

  • 339 compared
  • 10 changed
  • 80 new
  • 12 gone

server settings at their built-in defaults and the extensions the image ships; 339 entries in both, 10 changed, 80 new, 12 gone.

Default14.2519.0
default_toast_compressionpglzlz4
effective_io_concurrency116
hash_mem_multiplier12
jitonoff
log_autovacuum_min_duration-110min
log_checkpointsoffon
log_connectionsoff(empty)
log_lock_waitsoffon
maintenance_io_concurrency1016
max_locks_per_transaction64128

Gone in 19.0: db_user_namespace, escape_string_warning, extension:adminpack, extension:old_snapshot, extension_destdir, force_parallel_mode, old_snapshot_threshold, promote_trigger_file, ssl_ecdh_curve, stats_temp_directory, trace_recovery_messages, vacuum_defer_cleanup_age.

New in 19.0: allow_alter_system, archive_library, autovacuum_analyze_score_weight, autovacuum_freeze_score_weight, autovacuum_max_parallel_workers, autovacuum_multixact_freeze_score_weight, autovacuum_vacuum_insert_score_weight, autovacuum_vacuum_max_threshold, autovacuum_vacuum_score_weight, commit_timestamp_buffers, createrole_self_grant, debug_io_direct, debug_logical_replication_streaming, debug_parallel_query, debug_print_raw_parse, enable_distinct_reordering, enable_eager_aggregate, enable_group_by_reordering, enable_presorted_aggregate, enable_self_join_elimination, event_triggers, extension:pg_logicalinspect, extension:pg_stash_advice, extension:pg_walinspect, extension_control_path, file_copy_method, file_extend_method, gss_accept_delegation, icu_validation_level, idle_replication_slot_timeout and 50 more in the raw data.

Measured Nov 23, 2026 on our own machine. How we tested · Raw data (JSON)

More on PostgreSQL

How we tested

  • ProcessorAMD Ryzen 7 7800X3D (8 cores, 16 threads)
  • Memory32 GB RAM
  • SystemWindows 11 Pro, Docker Desktop (WSL 2)
  • ContainersDocker Engine 29.9.3

What we ran

  • 14.25 postgres:14.25 sha256:c0e9c0e9bac7…
  • 15.20 postgres:15.20 sha256:8cf673eb99f8…
  • 16.16 postgres:16.16 sha256:30551eca978d…
  • 17.12 postgres:17.12 sha256:dbb9623d5121…
  • 18.7 postgres:18.7 sha256:9f4fd4aa918f…
  • 19.0 postgres:19.0 sha256:bb6e70add742…

Self-test 19.0 against 19.0 in two containers: the largest difference was 18.4%, none of them clear.

Method

  • Median of 11 rounds after 1 warm-up round; the version that starts each round rotates
  • Each version is the newest release of its line on 2026-11-23, run as it ships, all in one run
  • JIT as each version runs it: on on 14.25, on on 15.20, on on 16.16, on on 17.12, on on 18.7, off on 19.0
  • 8 CPU cores and a 6 GB memory limit per container, data in memory (tmpfs), default server settings
  • pgbench scale 10 (1M rows) reloaded every round; a 10M-row analytical table built once per container
Reproduce it
Commands
cat postgres-lab.sh | docker run --rm -i --network none --read-only --cpus 8 --memory 6g --user 10001:10001 --tmpfs /tmp:exec --tmpfs /home/check:exec,size=4g,uid=10001 -e HOME=/home/check -w /home/check postgres:19.0 sh -s
For the other versions use postgres:14.25, postgres:15.20, postgres:16.16, postgres:17.12, postgres:18.7.
The script: https://thestacksentinel.com/lab/scripts/postgres-lab.sh.txt (save it as postgres-lab.sh)
Defaults: the same command with https://thestacksentinel.com/lab/scripts/postgres-defaults.sh.txt prints every DEFAULT line

Limits

  • One machine: an 8-core desktop CPU under Windows 11 and WSL 2; a Linux server may behave differently.
  • The data lives in memory, so disk speed is not part of these numbers.
  • Default server settings; a tuned server (memory, parallel workers, JIT costs) may differ.

Raw data (JSON) · How we test

Official pages on PostgreSQL 19.0