Comparison

m7g vs m7i for PostgreSQL

Graviton3 (m7g) vs 4th-gen Intel (m7i) general-purpose EC2 instances on PostgreSQL — same generation, same sizes, measured throughput and cost.

Workload 90% read / 10% writePostgreSQL 17Dataset 10 GBStorage gp3-baseline

Verdict

For this PostgreSQL workload, m7g.xlarge (arm64) is the best value at 293,214 req/s per $/hr — a 4% cost-efficiency lead over m7i.xlarge. The highest raw throughput comes from m7g.2xlarge at 75,741 req/s. Across architectures, the best Arm option (m7g.xlarge) leads the best x86 option (m7i.xlarge) by 4% on cost-efficiency.

Side by side

m7g vs m7i for PostgreSQL: PostgreSQL benchmark comparison
InstanceArch$/hrRPSp95 msRPS/$RPS/vCPU
m7g.xlargearm64$0.1851/hr54,2792.03293,21413,570
m7i.xlargex86-64$0.2235/hr63,2151.88282,82015,804
m7g.2xlargearm64$0.3483/hr75,7411.82217,4499,468
m7i.2xlargex86-64$0.4251/hr71,9301.81169,2018,991
m7g.largearm64$0.1035/hr5,46611.8552,8022,733
m7i.largex86-64$0.1227/hr5,47411.8044,6062,737

Measured at a 10 GB dataset on gp3-baseline storage. Open the sizing tool to change the dataset size, disk, or metric, or browse the full benchmark data.

Frequently asked questions

Which is better for PostgreSQL, m7g.large or m7i.large or m7g.xlarge or m7i.xlarge or m7g.2xlarge or m7i.2xlarge?

On cost-efficiency, m7g.xlarge leads at 293,214 req/s per $/hr. For raw throughput, m7g.2xlarge is fastest at 75,741 req/s. Across architectures, the best Arm option (m7g.xlarge) leads the best x86 option (m7i.xlarge) by 4% on cost-efficiency. Choose by whether you optimize for throughput per dollar or peak capacity.

m7g.xlarge vs m7i.xlarge: what's the difference for PostgreSQL?

m7g.xlarge delivers 54,279 req/s at 293,214 req/s per $/hr; m7i.xlarge delivers 63,215 req/s at 282,820 req/s per $/hr. That is a 4% cost-efficiency edge for m7g.xlarge on this workload.

What workload and configuration were these numbers measured on?

A mixed OLTP pattern — 90% primary-key reads, 10% single-row inserts — at 32 concurrent connections on PostgreSQL 17 in us-east-1, with a 10 GB dataset on a gp3-baseline gp3 volume. The benchmark harness is open source.