# PostgreSQL performance and cost across 23 EC2 instance types

Hey! I'm Andrei. I got frustrated by how people tend to build overcomplicated backend systems, being "motivated" by big tech case studies and popular books. So, I started exploring lean architecture, and building my digital garden of ideas, approaches and data that align with this direction. Here I…

- **Page:** https://magpie.gallery/i/postgresql-performance-and-cost-across-23-ec2-inst-sxyk
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** postgresql, benchmark, sizing, cloud

## Source

Web · anivan_: PostgreSQL performance and cost across 23 EC2 instance types

- **Original:** https://news.ycombinator.com/item?id=48816900

> Hey! I'm Andrei. I got frustrated by how people tend to build overcomplicated backend systems, being "motivated" by big tech case studies and popular books. So, I started exploring lean architecture, and building my digital garden of ideas, approaches and data that align with this direction. Here I want to present one of the tools – Sizing tool for PostgreSQL. I've benchmarked PostgreSQL on different EC2 instances and disks, with different initial data sets to see performance that these instances can give you. And I've built a tool to visualize this data, which I welcome you to explore. So, you can put your usual input parameters, like needed RPS and disk size as input, and find out which instance will be the most cost-efficient for your needs. You can read about the methodology here: https://postgres.saneengineer.com/about I've tested one workload – mixed 90/10 read/write, and only selected configurations. But it is extensible, and I (and you – benchmark is open source: https://github.com/anivaniuk/sanebench) can run more configurations to have more data represented. Does it look interesting? What workload should I benchmark next? https://postgres.saneengineer.com

## GitHub projects

- https://github.com/anivaniuk/sanebench

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
