# Notebook 2: what waiting for the log costs per commit # run at: 2026-11-18 04:26 UTC # runner: Linux-7.0.0-1019-azure-x86_64-with-glibc2.43 | 4 vCPU # PostgreSQL: 18.7 (Debian 18.7-1.pgdg13+2) # MySQL: 8.4.13 # MongoDB: 8.0.38 Each run: 2000 single-row INSERTs, one commit each, from one client on the same machine. The runner disk is a cloud VM disk. Absolute numbers will differ on your hardware; the ratio is the point. ## PostgreSQL 18: synchronous_commit on vs off synchronous_commit = on 4238 commits/s 0.236 ms per commit synchronous_commit = off 7607 commits/s 0.131 ms per commit synchronous_commit = on 4131 commits/s 0.242 ms per commit ## MySQL 8.4: innodb_flush_log_at_trx_commit and sync_binlog innodb_flush_log_at_trx_commit = 1, sync_binlog = 1 1770 commits/s 0.565 ms per commit innodb_flush_log_at_trx_commit = 2, sync_binlog = 0 4013 commits/s 0.249 ms per commit innodb_flush_log_at_trx_commit = 1, sync_binlog = 1 1798 commits/s 0.556 ms per commit ## MongoDB 8.0 (single-node replica set): write concern j: true vs j: false w: 1, j: true 1048 commits/s 0.954 ms per commit w: 1, j: false 2716 commits/s 0.368 ms per commit w: 1, j: true 1121 commits/s 0.892 ms per commit