ZeroFS vs AWS EFS Benchmarks

Performance comparison conducted on AWS EC2 t3.xlarge (4 vCPUs, 16 GiB RAM) in eu-north-1 region.

Test Setup

  • VM: AWS EC2 t3.xlarge, eu-north-1
  • ZeroFS Storage: AWS S3 Standard
  • EFS Configuration: General Purpose performance mode, Elastic throughput mode
  • EFS Mount: NFS 4.1 with AWS recommended parameters
  • Benchmark suite: github.com/Barre/ZeroFS/bench
  • Operations per test: 10,000

Architecture Differences

ZeroFS: Direct S3-only architecture. No additional infrastructure required. Full POSIX compliance.

AWS EFS: Managed NFS service.

Performance at a Glance

Key Performance Differences

Sequential Writes (higher is better)EFS: 2.1x slower
ZeroFS
231 ops/s
EFS
108 ops/s
Data Modifications (higher is better)EFS: 1.7x slower
ZeroFS
309 ops/s
EFS
182 ops/s
File Append (higher is better)EFS: 3.3x slower
ZeroFS
301 ops/s
EFS
91 ops/s
Empty Files (higher is better)ZeroFS: 1.5x faster
ZeroFS
295 ops/s
EFS
196 ops/s
Empty Directories (higher is better)EFS: 2x slower
ZeroFS
447 ops/s
EFS
219 ops/s
Random Reads (higher is better)EFS: 3.0x faster
ZeroFS
416 ops/s
EFS
1243 ops/s
Git Clone (lower is better)ZeroFS: 1.3x faster
ZeroFS
3.9s
EFS
5.0s
Cargo Build (lower is better)EFS: 1.2x faster
ZeroFS
5m 45s
EFS
4m 56s
TAR Extract (lower is better)ZeroFS: 2.2x faster
ZeroFS
40s
EFS
88s
Storage Cost per GB (lower is better)ZeroFS: 13x cheaper
ZeroFS
2.3¢
EFS
30¢

Benchmark Results

Synthetic Benchmarks

TestZeroFSAWS EFSDifference
Sequential Writes
Operations/sec230.71108.132.1x faster
Mean latency4.32ms9.22ms2.1x slower
Success rate100%100%-
Data Modifications
Operations/sec308.60181.521.7x faster
Mean latency3.23ms5.50ms1.7x slower
Success rate100%100%-
Single File Append
Operations/sec300.9191.113.3x faster
Mean latency3.31ms10.95ms3.3x slower
Success rate100%100%-
Empty Files
Operations/sec294.87195.611.5x faster
Mean latency2.74ms4.62ms1.7x slower
Success rate100%100%-
Empty Directories
Operations/sec446.61219.012.0x faster
Mean latency2.23ms4.55ms2.0x slower
Success rate100%100%-
Random Reads
Operations/sec415.681,242.613.0x slower
Mean latency2.40ms0.80ms3.0x faster
Success rate100%100%-

Real-World Operations

OperationZeroFSAWS EFSNotes
Git clone3.9s5.0sZeroFS repository
Cargo build5m 45s4m 56sDevelopment profile
tar -xf (ZFS source)40.0s88.1sZFS 2.3.3 release tarball

Cost Analysis

Storage Cost Comparison

Based on AWS pricing (eu-north-1 region):

AWS EFS Pricing:

  • Storage: $0.30/GB-Month (Standard/SSD storage)
  • Read operations: $0.03/GB transferred
  • Write operations: $0.06/GB transferred

AWS S3 Standard Pricing (for ZeroFS):

  • Storage: $0.023/GB-Month (first 50TB)
  • EC2-to-S3 data transfer within same region: Free
  • S3 API operations: Minimal

Raw Storage Cost Comparison

Storage SizeZeroFS (S3) MonthlyAWS EFS MonthlyCost Difference
100 GB$2.30$30.0013x more expensive
1 TB$23.00$300.0013x more expensive
10 TB$230.00$3,000.0013x more expensive
100 TB$2,300.00$30,000.0013x more expensive

Annual Storage Cost Projection

Storage SizeZeroFS (S3) AnnualAWS EFS AnnualAnnual Savings with ZeroFS
100 GB$27.60$360.00$332.40
1 TB$276.00$3,600.00$3,324.00
10 TB$2,760.00$36,000.00$33,240.00
100 TB$27,600.00$360,000.00$332,400.00

Important Notes:

  • ZeroFS: Primary cost is S3 storage at $0.023/GB-month. EC2-to-S3 data transfer is free within the same AWS region. S3 API costs are typically negligible.
  • AWS EFS: Storage cost is 13x higher at $0.30/GB-month, PLUS additional charges for all data transfers ($0.03/GB for reads, $0.06/GB for writes).
  • The comparison above shows storage costs only. EFS's data transfer charges can significantly increase total costs depending on usage patterns.

Key Observations

ZeroFS

  • 2-3x faster for write operations
  • 2x faster for directory operations
  • 13x lower storage costs ($0.023/GB vs $0.30/GB)
  • No data transfer charges within same AWS region
  • Direct S3 architecture

AWS EFS

  • 3x faster for random read operations
  • Additional charges for data transfers ($0.03/GB read, $0.06/GB write)

Technical Details

Sequential Writes

Creates files in sequence. Tests metadata performance and write throughput.

ZeroFS: 10,000 files in 43.3 seconds
AWS EFS: 10,000 files in 92.5 seconds (2.1x slower)

Data Modifications

Random writes to existing files. Tests consistency and caching.

ZeroFS: 10,000 operations in 32.4 seconds
AWS EFS: 10,000 operations in 55.1 seconds (1.7x slower)

Single File Append

Appends to a single file. Tests lock contention and write ordering.

ZeroFS: 10,000 operations in 33.2 seconds
AWS EFS: 10,000 operations in 109.8 seconds (3.3x slower)

Empty File Creation

Pure metadata operations without data writes.

ZeroFS: 10,000 files in 33.9 seconds
AWS EFS: 10,000 files in 51.1 seconds (1.5x slower)

Empty Directory Creation

Tests directory metadata operations.

ZeroFS: 10,000 directories in 22.4 seconds
AWS EFS: 10,000 directories in 45.7 seconds (2.0x slower)

Random Reads

Tests read performance from various file positions.

ZeroFS: 415.68 ops/sec
AWS EFS: 1,242.61 ops/sec (3x faster)

Git Clone

Tests mixed read/write patterns with metadata operations.

ZeroFS: Completed in 3.9 seconds
AWS EFS: Completed in 5.0 seconds (1.3x slower)

Compilation Workload

Rust compilation of ZeroFS codebase. Tests mixed read/write patterns.

ZeroFS: 5 minutes 45 seconds
AWS EFS: 4 minutes 56 seconds (1.2x faster)

Archive Extraction

Extracting ZFS 2.3.3 source tarball. Tests sequential file creation with varying sizes.

ZeroFS: 40.0 seconds
AWS EFS: 88.1 seconds (2.2x slower)

Summary

In our benchmarks, ZeroFS demonstrated 2-3x faster performance for write operations while using S3 storage that costs 13x less than EFS. AWS EFS showed better random read performance (3x faster) but at significantly higher cost.

The tests revealed substantial cost differences: EFS charges $0.30/GB-month for storage compared to S3's $0.023/GB-month, plus additional fees for data transfers. For a 10TB deployment, this translates to an annual difference of over $33,000 in storage costs alone.

Was this page helpful?