Comparing Postgres and MySQL on the insert benchmark with a small server
My primary goal with the benchmarks I run has been to identify performance regressions, especially ones that can be fixed to make open source databases better. And so I focus on comparing old and new versions of one DBMS at a time to identify where things get better or worse. But here I compare Postgres with MySQL (InnoDB & MyRocks) to show that neither is the best for the Insert Benchmark -- all are good, but none are perfect. The per-DBMS results are here for Postgres , InnoDB and MyRocks . Those posts also have links to the configurations and builds that I used. This post shares the same result but makes it easier to compare across DBMS. Results here are from a small server (8 cores) with a low concurrency workload (1 client, <= 3 concurrent connections). Results from a larger server are pending and might not be the same as what I share here. Summary of throughput for the IO-bound workload Initial load in key order (l.i0) Postgres is fastest Write-only with secondary index