June 27, 2026 9 min read 2,061 words

Neon vs Supabase on Stack Overflow-scale Postgres

Rishi Raj Jain
Rishi Raj Jain @rishi_raj_jain_

Performance and monthly cost for the same Drizzle workloads on Neon and Supabase — identical ~5.1 GB data restored with pg_restore, with no extra tuning beyond the dump.

Postgres performance below is response time (ms) per query at the p50 (median) and p99 percentiles, computed from every suite row in the 24-hour long-run set of suites (one suite = one full pass of all read-only Drizzle queryset). Lower is faster.

Dataset

Benchmarks run against the Stack Overflow sample database for Postgres distributed by Smart Postgres. The dump is derived from the official Stack Overflow data dump (CC BY-SA 4.0); when you use it, attribute the data to Stack Overflow as described in that license.

These runs use the small Smart Postgres release (roughly the first three years of Stack Overflow). We only downloaded and restored it with pg_restore into Postgres (~5.1 GB on disk afterward). No further optimization on Neon or Supabase was made. Core tables include users, posts, comments, votes, and badges (millions of rows at full scale).

These numbers are read-only Drizzle queries over public (findMany, findFirst, nested reads, aggregates, and related patterns on posts, users, comments, votes, and tags).

Test setup

Both Neon and Supabase projects were created in AWS us-east-1 (N. Virginia). The benchmark worker ran on an EC2 instance in us-east-1 so compute and databases share the same region.

All traffic used each provider’s pooler connection string (not a direct Postgres host) - the URLs in NEON_URL and SUPABASE_URL targeted Neon’s pooler and Supabase Supavisor respectively, with a single client connection per worker.

Benchmark run window

ProviderStarted (UTC)Ended (UTC)
Neon 2026-05-20 16:31:14 UTC2026-05-21 16:31:23 UTC
Supabase 2026-05-20 16:31:14 UTC2026-05-21 16:31:17 UTC

From worker_started / worker_finished in benchlr-env-neon.csv and benchlr-env-supabase.csv.

Schedule: 4 cycles × (5 h continuous Drizzle suites + 1 h cold idle), ~24 h total. Last suite before the final idle hour: 2026-05-21 15:31:23 UTC. Derived from results/long-run-1779294672020/ logs and CSV markers.

Branch creation time

3 parallel branch creates per provider; mean time until SELECT 1 succeeds on the branch connection string. Lower is faster. Measured 2026-06-03 09:12:07 UTC (poll every 50 ms).

Metric Supabase Neon
Mean time to queryable (SELECT 1)5.09 s1.84 s

Source: npm run branch-create → results-website/branch-create.json. Regenerate after re-running the benchmark.

PITR restore time

Point-in-time restore to the latest backup window; timer starts at the restore API POST and ends when public.badges is present (Postgres connection only). Lower is faster. Measured 2026-06-03 12:29:08 UTC (poll 100 ms).

Metric Supabase Neon
Time to restore (Postgres connection + table present after restore POST)72.62 s5.79 s

Source: npm run pitr → results-website/pitr.json. Regenerate after re-running the benchmark.

Memory & compute during the run

Console screenshots from the same ~24 h window as the benchmark. Neon and Supabase report memory differently (compute units vs. VM totals), but both charts line up with the four 5 h work blocks and 1 h cold-idle gaps in the run schedule.

During the run Neon Supabase
RAM while querying~0.6 GB used, ~1.8–2 GB used + cached7.55 GB on an ~8 GB instance; almost all in cache + buffers, thin active used slice
1 h cold idle (between cycles)Endpoint inactive — RAM and CPU drop to zero (autosuspend after 5 min)Memory stays at 7.55 GB; VM remains provisioned
Compute shape0.25–8 CU autoscale; min ~1 GB / max ~32 GB RAM at ceiling~8 GB fixed instance with 2-core ARM CPU; no scale-to-zero or autosuspend
CPU while querying~0.25 vCPU used at minimum; allocated spikes to ~1.5 vCPU~0.86% CPU used (~99% idle)

Takeaway: Neon’s footprint shrinks between benchmark cycles because the endpoint suspends; Supabase keeps a large, warm buffer pool for the full day.

Neon - RAM & CPU (console)
Neon console RAM and CPU charts for May 20–21, 2026, showing four active work periods separated by endpoint inactive intervals

Four active blocks match benchmark work cycles; hatched gaps are autosuspend. ~0.6 GB used and ~1.8–2 GB cached while active; allocated RAM spikes to ~7 GB.

Supabase - Memory usage
Supabase memory usage chart at 7.55 GB cache and buffers for May 20–21, 2026

Flat 7.55 GB cache+buffers for the full 24 h — no drop during cold-idle hours between Drizzle suites.

Supabase - CPU & network
Supabase CPU and network throughput charts with four outbound traffic bursts during the benchmark day

Four outbound bursts peak ~210 MB/s and hold ~110 MB/s during work blocks; CPU stays ~0.86% used (~99% idle).

Postgres performance (p50 & p99 ms)

Response time per query, lower is faster. The faster provider is highlighted. Use ⓘ to see the Drizzle query behind each row.

Name Supabase Neon
p50p99p50p99
find all 112.74259.28150.35294.58
find all filter paginate order 3.6720.804.4721.38
find all 1-level nesting 544.441131.19528.351037.47
find first 5.5737.933.8838.48
find first 1-level nesting 5.5520.624.9535.89
find unique 2.9913.522.6814.52
find unique 1-level nesting 9.7739.518.9651.13
posts find all 5.1120.005.1728.56
posts find all with comments 4.6819.874.3623.00
comments find first with post 3.9418.063.6519.08
votes find all 3.3915.833.4917.36
tags find all 3.4415.203.6118.52
badges find all with user 5.1119.904.8620.96
readonly transaction 12.1233.2111.3134.07

Monthly cost comparison

Monthly cost estimates for running this benchmark’s ~5 GB Postgres dataset on each provider’s production configuration. Neon bills usage (CU-hours + storage); Supabase bills a fixed Pro + Large instance with custom disk for WAL and system overhead. Neon breakdown and Supabase breakdown below for full assumptions and line-item math.

Setup Neon Supabase
PlanScale — $0.22/CU-hr, $0.35/GB-monthPro — $25.00/mo (8 GB disk included)
Storage / disk5.1 GB data, metered monthly5.1 GB DB + 3.86 GB WAL + 1.51 GB system ≈ 10.47 GB → 12 GB custom disk (over Pro limit)
Compute0.25–8 CU autoscale; ~0.5 CU avg in work blocksLarge — 8 GB RAM (4 GB tier not enough for ~5.1 GB DB in memory); $0.15/hr
Benchmark schedule4× (5 h on + 1 h idle) → 20 h compute / day, 4 h suspended (0 CU-hr)VM stays on 24/7 — cost does not follow the 5 h / 1 h cycle
Monthly line item Neon Supabase
Storage5.1 GB × $0.35 = $1.78Included in Pro + 12 GB disk sizing
Compute304.38 CU-hr × $0.22 = $67.57$110.00 (Large add-on)
Plan / credits—$25.00 − $10.00 credits
Estimated total$69.35/mo$125.00/mo

Egress and extra disk charges are not included. For this workload, Neon is roughly 2× cheaper at the central estimate ($69.35 vs $125.00).

What each plan includes beyond Postgres compute

This benchmark only exercised Drizzle reads over the pooler, but both production plans bundle more than raw database hosting. Neon Scale ($0.222/CU-hr, $0.35/GB-month) is Postgres-first with enterprise ops. Supabase Pro ($25.00/mo) adds a full backend platform on top of the Large compute add-on used here.

Included on the plan Neon Scale Supabase Pro
Postgres coreServerless Postgres, autoscaling up to 16 CU (fixed sizes up to 56 CU), branching (25 branches per project), read replicas, up to 10,000 pooled connections, extensions, Data APIDedicated Postgres, unlimited API requests, connection pooler, 8 GB disk per project (then $0.125/GB), $10/mo compute credits
RecoveryUp to 30-day restore window, 100 manual snapshots, scheduled snapshots ($0.09/GB-month), instant restore storage ($0.20/GB-month)Daily backups kept for 7 days, point-in-time recovery optional ($100/mo per 7 days)
AuthManaged Better Auth with up to 1M MAU per project100k MAU (then $0.00325/MAU), OAuth, OAuth 2.1 server, custom SMTP, basic MFA (phone MFA $75/mo), SAML (50 MAU), auth hooks, 7-day audit logs
Storage & filesObject Storage at $0.023/GB-month, with its egress counted in the network allowance100 GB file storage (then $0.0213/GB), Smart CDN, 500 GB max upload, 100 origin images for transforms
Realtime & edgeRealtime (beta, free during the beta), Functions ($0.60 per 1M invocations plus capacity-hours)Realtime with 500 concurrent connections and 5M messages/mo, 2M Edge Function invocations
Network500 GB egress per project (then $0.10/GB), IP Allow rules, private networking ($0.01/GB)250 GB egress + 250 GB cached egress included. PrivateLink is not on Pro
Observability14-day monitoring retention, metrics and logs export (Datadog, OpenTelemetry), spending alerts at 80% and 100% of a monthly limit7-day API & database log retention, 20 GB log ingestion, metrics endpoint, log drains ($60/mo per drain). Platform audit logs are not on Pro
Compliance & supportSOC 2, ISO 27001 and 27701, GDPR and CCPA, HIPAA with a self-serve BAA, uptime SLA, Standard, Business or Production supportEmail support, vanity URLs, spend cap on by default. SOC 2, ISO 27001, HIPAA and an uptime SLA are not on Pro

Takeaway: Neon Scale extras skew toward production Postgres (a 30-day restore window, SOC 2, ISO and HIPAA, an uptime SLA, private networking, scale-to-zero billing). Its app services (Auth, Object Storage, Functions, and Realtime in beta) are billed by usage. Supabase Pro bundles quotas for Auth, Storage, Realtime, and Edge Functions into the subscription, even when the workload is Postgres-only, but compliance reports, HIPAA, PrivateLink, and an uptime SLA need a higher plan.

Plan details as of November 16, 2026, from neon.com/pricing and supabase.com/pricing.

Neon — Scale plan detail

Back to comparison

Extrapolating this benchmark’s schedule to a full month on Neon’s Scale plan ($0.22/CU-hr compute, $0.35/GB-month storage). Compute is billed as average CU × hours the endpoint runs; autosuspend during each 1 h cold-idle block means 0 CU-hours while the endpoint is inactive.

AssumptionValue
Daily schedule4× (5 h Drizzle suites + 1 h cold idle) = 20 h compute on, 4 h suspended
Compute size0.25–8 CU autoscale; ~0.5 CU average during work blocks (from console RAM/CPU)
Storage5.1 GB maintained all month
Active hours / month(20 / 24) × 730.5 ≈ 608.75 h
Line itemCalculationMonthly (USD)
Storage5.1 GB × $0.35$1.78
Compute0.5 CU × 608.75 h ≈ 304.38 CU-hr × $0.22$67.57
Estimated totalat ~0.5 CU during 608.75 h active$69.35

Supabase — Pro + Large detail

Back to comparison

For this benchmark’s ~5.1 GB Postgres data, Supabase’s dashboard reported ~3.86 GB WAL and ~1.51 GB system overhead (~10.47 GB on disk total). That exceeds the Pro plan’s 8 GB included disk, so the project was resized to a custom 12 GB disk. The database alone exceeds the Medium compute tier (4 GB RAM) — Large (8 GB RAM, 2-core ARM) holds the working set in memory. Unlike Neon, the instance stays provisioned 24/7; Supabase’s calculator bills a flat monthly compute add-on.

AssumptionValue
PlanPro (8 GB disk included; daily backups, bandwidth pool)
On-disk breakdownDatabase 5.1 GB + WAL 3.86 GB + system 1.51 GB ≈ 10.47 GB → custom 12 GB disk size
ComputeLarge — 8 GB RAM, 2-core ARM ($0.15/hr listed in dashboard)
Line itemSupabase pricing calculatorMonthly (USD)
Plan subscriptionPro$25.00
Compute add-onLarge (Project 1)$110.00
Compute creditsIncluded with Pro−$10.00
Estimated totalPro + Large − credits$125.00

Thanks for reading

If this was useful, sharing it on X helps a lot. Spotted a typo or want to push back? DM me.

More posts

2 posts