# Elefork vs Neon

> How Elefork and Neon differ, and when to choose which.

Neon and Elefork both give you PostgreSQL databases that branch in seconds and scale to zero when idle. They are built for different jobs:

- **Neon** is a serverless PostgreSQL platform for running applications. Every database is durable, can go back to any point in its history, and comes with a backend platform around it.
- **Elefork** gives agents, test runs and RL episodes **throwaway databases** that you can create, fork, reset and score in bulk. Each branch is a real PostgreSQL 18 in its own microVM, which you can use as superuser.

If you are building an application and need one database that must never lose data, use Neon. If you need many short-lived copies of the same database to try things on, compare results and throw away, Elefork is built for that.

Neon facts on this page are from Neon's public documentation and pricing as of **November 2026**. Check [neon.com](https://neon.com/docs) for current details.

## Choose Elefork when

- **You run many short episodes from the same starting state.** RL training, agent evaluations and benchmark suites: create a batch from one checkpoint (`count` up to 100 per call), and after each episode reset each branch to its own copy of that start state. On Neon, a reset goes back to the parent branch's latest state only, and each branch is created separately.
- **You need to return to named checkpoints, not just to the parent.** Take checkpoints at any point in a branch and reset or fork from any of them. On Neon, snapshots and instant restore are available only on root branches.
- **You want copies that start warm.** An Elefork checkpoint includes the instance's memory, so forks, resets and woken branches start with PostgreSQL's cache already filled. A Neon branch starts with a cold cache, and so does a compute after scale-to-zero. See [what warm starts are worth](#what-warm-starts-are-worth).
- **The agent should have full control of the database.** On Elefork, the tenant is a superuser. The microVM is the isolation boundary, so untrusted SQL can run as superuser. Neon gives you `neon_superuser` privileges, not a real superuser. It also limits extensions to a supported list and fixes most server settings.
- **Scores have to mean something.** Elefork seals an episode, then scores a separate copy of it, outside the database the agent worked in. Integrity checks flag databases that were tampered with. See [scored evaluations](/docs/guides/evaluations/). Neon has no scoring.
- **Idle time is short and frequent.** By default, an Elefork branch pauses after 60 s with no connections, and then uses no CPU or memory. On Neon, scale-to-zero happens after 5 minutes of inactivity by default; only the Scale plan can set it as low as 1 minute.
- **Most of your databases are disposable.** On Elefork, L0 branches go back to their latest checkpoint after a crash, so you don't pay for durability you don't need. On Neon, every database is fully durable, by design.

## Choose Neon when

- **The data must survive.** Neon acknowledges a commit only after a quorum of storage nodes across availability zones has it. On Elefork today, only **L0** is available: after a crash, a branch goes back to its latest checkpoint. Durable levels (L1, L2) are planned. See [durability levels](/docs/concepts/durability/).
- **You need point-in-time restore.** Neon can branch or restore from any moment in the history window, up to 30 days on the Scale plan. Elefork returns only to checkpoints you took.
- **Your database is large.** On Neon, creating a branch takes about the same time whatever the database size, because only storage is shared. Elefork works best when databases are small and their working set fits in the branch's memory.
- **You need a full application platform.** For example read replicas, logical replication, autoscaling compute, an HTTP or WebSocket driver, a Data API, built-in auth, functions or object storage. Elefork offers a standard PostgreSQL connection and nothing else, by design.
- **You need compliance, regions or an SLA.** Neon has SOC 2 Type II, ISO 27001 and HIPAA, runs in several AWS regions, and offers an SLA on the Scale plan. Elefork has none of these yet.
- **You want a free tier or ecosystem integrations today.** For example Vercel, or GitHub Actions for preview branches. Elefork is invite-only for now.

## Side by side

| | Elefork | Neon |
|---|---|---|
| Built for | Throwaway databases for agents, evaluations, RL and tests | Serverless PostgreSQL for applications |
| PostgreSQL | Stock PostgreSQL 18, one per microVM | PostgreSQL computes in VMs, on shared storage |
| What a branch copies | Data files and memory (a checkpoint of the running instance) | Storage only, as of a point in history |
| Return to | Any checkpoint you took | The parent's latest state, or any moment in the history window (root branches) |
| Many copies at once | `count` up to 100 per request | One branch per request |
| Cache in a new copy | Warm | Cold |
| Superuser | Yes (L0) | No (`neon_superuser` privileges) |
| Durability | L0: back to the latest checkpoint after a crash. L1/L2: planned | Every database durable |
| Point-in-time restore | No | Yes |
| Idle pause | 60 s by default, per-branch policy | 5 min by default (configurable on Scale) |
| Scoring and sealed episodes | Yes | No |
| Read replicas, logical replication, autoscaling | No | Yes |
| HTTP driver, Data API, auth, functions | No | Yes |
| Compliance and SLA | Not yet | SOC 2 Type II, ISO 27001, HIPAA; SLA on Scale |
| Availability | Invite-only | Self-serve, with a free tier |

## What warm starts are worth

We measured warm starts on a single test node in November 2026. The setup:
- a 1 GiB branch;
- read-only `pgbench` from one client;
- each copy compared with a cold start of the same data.

| | Warm copy (Elefork checkpoint) | Cold start |
|---|---|---|
| Create to first SQL | about 0.1 s | about 0.4 s |
| Read throughput in the first second (data fits in memory) | near full speed | about one fifth of full speed |
| Time to reach 90% of full speed | about 3 s | about 7 s |

When the working set fits in the branch's memory, a warm copy saves **about 3–4 seconds per copy**. That matters for episodes that last seconds. For a CI job that runs for minutes, it hardly matters. When the database is as large as the branch's memory, the saving shrinks to about a second.

Two tips:
- Run your typical queries on the source branch **before** you take the checkpoint you will fork from.
- Choose a branch size whose memory holds your working set.

## Using both

The two work well side by side. Keep your application's durable database on Neon. Load a copy, or a dataset made from it, into Elefork as a template. Then run your evaluations, RL episodes or migration tests on Elefork branches. See [RL environments](/docs/guides/rl-environments/) and [scored evaluations](/docs/guides/evaluations/).

## Sources (Neon, November 2026)

- [Branching](https://neon.com/docs/introduction/branching) · [Reset from parent](https://neon.com/docs/guides/reset-from-parent) · [Branch restore](https://neon.com/docs/guides/branch-restore) · [Backup and restore](https://neon.com/docs/guides/backup-restore)
- [Compute lifecycle](https://neon.com/docs/introduction/compute-lifecycle) · [Scale to zero](https://neon.com/docs/introduction/scale-to-zero)
- [Roles](https://neon.com/docs/manage/roles) · [Compatibility](https://neon.com/docs/reference/compatibility)
- [High availability](https://neon.com/docs/introduction/high-availability) · [Plans](https://neon.com/docs/introduction/plans) · [Security](https://neon.com/security)
