# Archil vs Amazon EFS: file storage for AI agents

Source: https://archil.com/compare/amazon-efs

Archil vs Amazon EFS: git, npm and SQLite transactions ran about 5x to 190x faster on Archil in its benchmark, while EFS won large sequential and random writes.

[All comparisons](https://archil.com/compare)

# Archil vs Amazon EFS

Pick Amazon EFS for managed NFS deep in AWS (IAM, VPC, AWS Backup, EKS), shared NFS locks, or the fastest large sequential and random writes. Pick Archil when agents work on many small files, where git, npm and SQLite transactions ran about 5x to 190x faster, or need branches, an S3 API and sandboxes.

## Where Archil stands out

-   ### Faster on small files
    
    git, npm and SQLite transactions ran about 5x to 190x faster than on EFS in Archil's benchmark.
    
-   ### Branches and an S3 API
    
    Branch a disk in milliseconds and read the same files over S3.
    
-   ### Works beyond AWS
    
    Disks mount anywhere and sync with S3, GCS or R2.
    

## Archil and Amazon EFS, side by side

|  | Archil | Amazon EFS |
| --- | --- | --- |
| What it is | Managed POSIX file system with an S3 API, plus Firecracker sandboxes | Managed, serverless NFS on AWS |
| Protocol | Own protocol over FUSE; delegations acknowledge creates and writes locally | NFS; every create, rename or attribute change round-trips to the server |
| Many clients at once | Yes, up to 5,000 per disk | Yes, including ReadWriteMany for EKS pods via the EFS CSI driver |
| Snapshots and branches | Checkpoint p50 13 ms, branch p50 33 ms, any size | No native branching or checkpoints |
| Object storage | Syncs both ways with S3, GCS, R2 or S3-compatible; every disk is an S3 bucket | No S3 API to the file data |
| Running agent code | Firecracker sandboxes on a disk | Not included; pair with separate compute isolation |
| Billing model | Active storage per GiB-month | Per GB-month by class, plus throughput; IA and Archive bill at least 128 KiB per file |

What it is

Archil: Managed POSIX file system with an S3 API, plus Firecracker sandboxes

Amazon EFS: Managed, serverless NFS on AWS

Protocol

Archil: Own protocol over FUSE; delegations acknowledge creates and writes locally

Amazon EFS: NFS; every create, rename or attribute change round-trips to the server

Many clients at once

Archil: Yes, up to 5,000 per disk

Amazon EFS: Yes, including ReadWriteMany for EKS pods via the EFS CSI driver

Snapshots and branches

Archil: Checkpoint p50 13 ms, branch p50 33 ms, any size

Amazon EFS: No native branching or checkpoints

Object storage

Archil: Syncs both ways with S3, GCS, R2 or S3-compatible; every disk is an S3 bucket

Amazon EFS: No S3 API to the file data

Running agent code

Archil: Firecracker sandboxes on a disk

Amazon EFS: Not included; pair with separate compute isolation

Billing model

Archil: Active storage per GiB-month

Amazon EFS: Per GB-month by class, plus throughput; IA and Archive bill at least 128 KiB per file

## Measured on one EC2 host

MethodFrom the [benchmark on docs.archil.com](https://docs.archil.com/reference/benchmarks/file-systems#archil-vs-amazon-efs): one AWS c7gn.2xlarge in us-east-1, a new Archil disk with default mount options, and Amazon EFS in General Purpose mode with Elastic throughput and Standard storage, mounted with amazon-efs-utils (TLS, NFSv4.1). Git clones came from local mirrors and npm from a filled cache, so only the file system was measured. Medians of 3 runs. [Run it yourself](https://docs.archil.com/reference/benchmarks/file-systems#archil-vs-amazon-efs).

### git clone, react (7,260 files)

Lower is better

-   Archil9.80 s
    
-   Amazon EFS1 min 22 s
    

### npm ci, create-next-app (~20k files)

Lower is better

-   Archil7.60 s
    
-   Amazon EFS1 min 26 s
    

### SQLite, 10k single-row transactions (synchronous=FULL)

Lower is better

-   Archil23.9 s
    
-   Amazon EFS8 min 43 s
    

### SQLite, one bulk insert of 1M rows

Lower is better

-   Archil11.0 s
    
-   Amazon EFS1.70 s
    

### Sequential write, 4 GiB + fsync

Higher is better

-   Archil194 MB/s
    
-   Amazon EFS590 MB/s
    

### 4 KiB random reads, cold

Higher is better

-   Archil4,086 IOPS
    
-   Amazon EFS1,298 IOPS
    

## Benchmark

One AWS c7gn.2xlarge in us-east-1; EFS General Purpose, Elastic throughput, Standard storage. Medians of 3 runs. [Methodology](https://docs.archil.com/reference/benchmarks/file-systems#archil-vs-amazon-efs).

|  | Archil | Amazon EFS |
| --- | --- | --- |
| git clone, react (7,260 files) | 9.8 s | 81.5 s |
| `git status`, react | 0.55 s | 2.6 s |
| git checkout of an old tag, react (8,158 files change) | 1.06 s | 46.9 s |
| `npm ci`, create-next-app (598 packages, ~20k files) | 7.6 s | 86.3 s |
| `rm -rf node_modules` | 1.5 s | 83.3 s |
| SQLite: 10k single-row transactions, `synchronous=FULL` | 23.9 s | 523 s |
| SQLite: 100k random point reads | 7.0 s | over 10 min (stopped) |
| SQLite: bulk insert of 1M rows in one transaction | 11.0 s | 1.7 s |
| Sequential write, 1 MiB blocks, 4 GiB + fsync | 194 MB/s | 590 MB/s |
| Sequential read, cold | 1,197 MB/s | 1,020 MB/s |
| 4 KiB random read, cold | 4,086 IOPS | 1,298 IOPS |
| 4 KiB random write, 30 s + fsync | 953 IOPS | 2,976 IOPS |

git clone, react (7,260 files)

Archil: 9.8 s

Amazon EFS: 81.5 s

`git status`, react

Archil: 0.55 s

Amazon EFS: 2.6 s

git checkout of an old tag, react (8,158 files change)

Archil: 1.06 s

Amazon EFS: 46.9 s

`npm ci`, create-next-app (598 packages, ~20k files)

Archil: 7.6 s

Amazon EFS: 86.3 s

`rm -rf node_modules`

Archil: 1.5 s

Amazon EFS: 83.3 s

SQLite: 10k single-row transactions, `synchronous=FULL`

Archil: 23.9 s

Amazon EFS: 523 s

SQLite: 100k random point reads

Archil: 7.0 s

Amazon EFS: over 10 min (stopped)

SQLite: bulk insert of 1M rows in one transaction

Archil: 11.0 s

Amazon EFS: 1.7 s

Sequential write, 1 MiB blocks, 4 GiB + fsync

Archil: 194 MB/s

Amazon EFS: 590 MB/s

Sequential read, cold

Archil: 1,197 MB/s

Amazon EFS: 1,020 MB/s

4 KiB random read, cold

Archil: 4,086 IOPS

Amazon EFS: 1,298 IOPS

4 KiB random write, 30 s + fsync

Archil: 953 IOPS

Amazon EFS: 2,976 IOPS

## How they differ

### Architecture

EFS is mature, serverless NFS, built for many clients sharing large files at high throughput.

Agent work is the opposite: clones, installs and SQLite, all small files and metadata. NFS can't cache a mutating metadata operation, so each one waits on the server. Archil clients take [delegations](https://docs.archil.com/concepts/sharing-disks) and talk to several storage servers in parallel.

### Where the performance gap comes from

Archil leads on small files and transactions, about 8x on a react clone and 22x on SQLite transactions. EFS leads on large sequential writes, 4 KiB random writes and one bulk SQLite insert, so "uses SQLite" alone doesn't pick a file system.

### Persistence and sharing

EFS's CSI driver survives pod restarts, node replacements and cluster upgrades, and its NFS locks are shared across clients.

An Archil disk mounts in [shared or conditional mode](https://docs.archil.com/concepts/sharing-disks). A write is durable when `fsync` returns, designed for 99.999% durability across Availability Zones, and checkouts give one client exclusive writes to a path.

### Branching agent workspaces

On EFS, teams build branching themselves, for example with checkpoints to S3. Each Archil [branch](https://docs.archil.com/concepts/branches-and-checkpoints) is an independent writable disk: one per agent attempt, or a rollback after a failed run.

### Object storage and running code

EFS is a file system only. Archil's S3 API is strongly consistent with the file system, a disk can [sync to your bucket](https://docs.archil.com/concepts/data-sources) as ordinary objects, and Archil sandboxes keep the agent's code next to its files.

### Pricing model

On EFS, each file's 2 KiB of metadata stays in Standard, so small-file workspaces gain little from tiering. See [Amazon EFS pricing](https://aws.amazon.com/efs/pricing/).

Archil has a lower archive rate for colder data on Archil-managed disks, and copy-on-write branches bill shared data once. See [Archil pricing](https://archil.com/pricing).

## Which one should you use?

### Use Amazon EFS when

-   you want IAM, VPC, AWS Backup and EKS integration without another vendor
-   apps rely on shared NFS file locks
-   large sequential writes, random writes or bulk inserts dominate
-   you already run EFS under AWS-anchored compliance

### Use Archil when

-   agents clone, install and run SQLite transactions
-   each attempt needs its own branch in milliseconds
-   you need the files over S3, or data in GCS or R2
-   compute runs outside AWS, or agents need a sandbox next to the data

## Questions people ask

### 

### 

### 

## More comparisons

-   [Archil vs Amazon S3 FilesAgent workspaces, or AWS-native NFS over your bucket](https://archil.com/compare/amazon-s3-files)
-   [Archil vs JuiceFSPlain objects in your bucket, or JuiceFS chunks](https://archil.com/compare/juicefs)
-   [Archil vs Mountpoint for Amazon S3Full POSIX over your bucket, or fast S3 reads](https://archil.com/compare/mountpoint-for-amazon-s3)
-   [Archil vs TigrisA file system for agents, in front of Tigris or instead](https://archil.com/compare/tigris)

Or see [every comparison](https://archil.com/compare), grouped by sandboxes, file systems and object storage.
