MySQL and Postgres vs the Insert Benchmark on a large server
This has benchmark results for MySQL and Postgres vs the Insert Benchmark on a large server. My intent is to document how performance changes over time more so than start a Postgres vs MySQL argument. MySQL has accumulated large regressions from 5.6 to 8.0 that are obvious on low-concurrency benchmarks. While they are less obvious on high-concurrency benchmarks, and there have been significant improvements to make MySQL 8 better at high-concurrency, the regressions that hurt low-concurrency results also reduce throughput at high-concurrency. tl;dr For Postgres 17rc1 vs 15.8 Performance is mostly the same For MySQL 8.0.39 vs 5.6.51 Writes are much faster in 8.0.39 Reads throughput is mixed, 8.0.39 is slower than, similar to and faster than 5.6.51 depending on the context For MySQL vs Postgres MySQL is faster on point queries Postgres is faster on writes and range queries Builds, configuration and hardware I compiled from source: Postgres versions 17rc1 from source using -O2 -fno-omit-