Performance

What Side Space feels like, measured, including what it does badly. Every number here, how it was measured and on what machine.

這一頁還沒有翻譯,所以先以英文顯示。

These are the numbers people feel: how long until a file you've never downloaded starts playing, how fast a big save goes, how quickly a folder lists. We publish what we do badly too, because that's also what we're fixing next.

Results

WhatResultNotes
Save a new 1 GiB file168 MiB/sCLI put; content-defined chunks, every chunk new
Save it again with 1 MiB changed in the middle1.6 sOnly the changed chunks are sent; the time is mostly local re-hashing
First 64 KiB of a file never downloaded37 msLinux mount (FUSE), open and read
Then 64 KiB near its end20 msFetches only the chunk it touches
Read all of it, cold240 MiB/sSequential, from the block gateway
Read it all again, cached536 MiB/sFrom the local cache
List a folder of 5,000 files132 msls in the mount
Write 500 small files into the mount133 files/sReturns before uploading
…until all 500 are versions on the server4.0 sFrom the first write
Save a 1 KiB file with the SDKp50 22 ms, p95 27 msPython SDK
Read it backp50 7 ms, p95 8 ms
Look up a pathp50 3 ms, p95 4 ms
Append a line at the endp50 67 ms, p95 72 msappend_text

What we do badly

  • Appending a line to a small file was 3× slower than saving the whole file again (67 ms against 22 ms): the server read the old content, added the line and chunked it all again. Since 2026-11-16 an edit re-chunks only the chunks near it, so a 4 KiB change in a 64 MiB file takes about 20 ms (below). The 1 KiB numbers in the table were measured before that change and haven't been re-run; a small append still pays for looking the file up first.
  • Listing the same folder again isn't faster (141 ms the second time). The mount caches folders for only a second, so every ls asks the server. The client already keeps a copy of the whole tree and could answer from it, kept current by push updates.
  • Re-saving a 1 GiB file after changing 1 MiB takes 1.6 s, nearly all of it spent reading the whole file again to hash it. The mount already knows which bytes were written and could re-hash only the chunks they touch.

Compared with a plain bucket

The question: doing the same work straight on an S3 bucket, or through Side Space, which is faster? Measured on 2026-11-16 with tests/e2e/vs-bucket.sh.

How

  • The same machine as above (4 cores, 15 GB), over loopback, so again no real network.
  • One client: Python 3.13, with boto3 for the bucket and the Python SDK for Side Space (boto3 again for the rows through the S3 gateway).
  • The bucket is the S3 service Side Space itself keeps its chunks in, so storage is identical. What's compared is the Side Space layer against using that bucket directly.
  • Each scenario is the median of several runs: 3 to 5 for big files, 7 for cold 64 KiB reads, 21 for repeat reads, 50 for small files, and 1 for copying 10,000 objects.
  • The bucket side does what programs usually do: change a file by uploading all of it again (building the new bytes in memory isn't counted), rename a folder by copying and deleting each object, and give an Agent a copy by copying each object server-side into a new bucket, 16 at a time.
  • Side Space does it its own way: edit() and append_text() send only the change, fork() makes the copy, and repeat reads go through the Linux mount's local cache.

Results: faster in 12 of 21 scenarios

ScenarioPlain bucketSide SpaceResult
Change 4 KiB in the middle of a 64 MiB file326 ms (upload 64 MiB again)18.5 ms (edit() sends 4 KiB)17.6× faster
Insert 4 KiB in the middle of a 64 MiB file300 ms (upload again)59.3 ms (edit() insert)5.1× faster
Append a line to a 64 MiB log323 ms (upload again)37.1 ms (append_text())8.7× faster
Change 4 KiB in the middle of a 1 GiB file2,906 ms (upload 1 GiB again, multipart)108 ms (edit() sends 4 KiB)27.0× faster
Read 64 KiB of a 64 MiB file, cold4.6 ms (Range GET)14.5 ms (open() with a range)3.1× slower
Read 64 KiB of a 1 GiB file, cold4.2 ms (Range GET)15.4 ms (open() with a range)3.7× slower
Read a whole 64 MiB file147 ms (GET)94.3 ms (download())1.6× faster
Read the same 64 KiB again3.8 ms (another Range GET)1.2 ms (Linux mount, local cache)3.1× faster
Read the whole 64 MiB again151 ms (another GET)82.6 ms (Linux mount, local cache)1.8× faster
Save a new 64 MiB file517 ms (PUT)1,183 ms (upload())2.3× slower
Save the same 64 MiB again329 ms (PUT)141 ms (upload(): a new version, no new chunks)2.3× faster
Save a new 64 MiB file through the S3 gateway567 ms (PUT)1,106 ms (PUT to the gateway)2.0× slower
Read 64 MiB through the S3 gateway159 ms (GET)95.9 ms (GET from the gateway)1.7× faster
Save a 1 KiB file3.5 ms (PUT)18.0 ms (upload())5.3× slower
Read a 1 KiB file2.3 ms (GET)4.9 ms (download())2.1× slower
Look up a file's size and time1.5 ms (HEAD)1.7 ms (node())1.1× slower
Save 1 KiB through the S3 gateway3.6 ms (PUT)13.9 ms (PUT to the gateway)3.8× slower
Read 1 KiB through the S3 gateway2.0 ms (GET)4.5 ms (GET from the gateway)2.3× slower
List a folder of 1,000 files71.5 ms (LIST, 1,000 per page)8.9 ms (list())8.0× faster
Rename a folder of 1,000 files2,637 ms (COPY then DELETE each, 16 at a time)8.9 ms (rename the folder)297.5× faster
Give an Agent a full copy (10,000 files)17,303 ms (server-side COPY of each object, 16 at a time)1,166 ms (fork(): no bytes copied)14.8× faster

Where we lose, and why

  • Small files are 2 to 5× slower. Saving 1 KiB takes 14 to 18 ms against 4 ms on the bucket. Each save is a real version: look up the path, make the file, write the version and its sidecars, journal it and notify, all in one database transaction. Reading 1 KiB also fetches a ticket before the chunk. Many small files written into the mount do this in the background (133 files a second, above), but a single API call is slower than a bare bucket.
  • Saving a new big file is 2× slower. A new 64 MiB file takes 1.1 to 1.2 s against 0.5 s: it's split into chunks by content, hashed with BLAKE3, encrypted, and written chunk by chunk. That buys deduplication, resumable uploads and sending only what changed. Saving the same content again is 2.3× faster, because there are no new chunks to write.
  • A cold read of a small range is 3 to 4× slower. Reading 64 KiB never read before takes about 15 ms against 4 to 5 ms: each chunk is encrypted and checked as a whole, so even 64 KiB fetches the whole chunk (2 MiB on average) and decrypts it. Reading the same place again is 3× faster than the bucket (the mount's local cache), and the block gateway keeps the last 128 MiB it decrypted in memory. Splitting chunks into pieces that decrypt on their own would let a cold read fetch only a piece; that's a storage format change, noted for later.
  • A fork copies no bytes, but each file's folder entry is copied, so the time grows with the number of files: about 1.2 s for 10,000. The bucket has to copy every object, 15× slower, and really does use twice the space.

Existing S3 tools, checked by the same script (aws-cli 2.40 and rclone 1.68 from their official Docker images, against the S3 gateway):

  • aws cli: s3 ls, s3 cp up (40 MiB, multipart) and down, s3 sync (nothing sent the second time), s3 ls --recursive, s3api head-object and s3 rm --recursive all pass, and downloads match byte for byte.
  • rclone: lsd, copy up and down, check --download (byte for byte), sync, moveto and delete all pass.
  • rclone purge is refused: it sees a versioned bucket and deletes each version by id, and Side Space doesn't delete single versions over S3. Use rclone delete, which moves files to the trash.

Run it yourself

From a checkout of the repository, on Linux with Docker:

Shell
scripts/dev-up.sh --native && tests/e2e/bench.sh     # BENCH_MB=2048 BENCH_FILES=10000 to scale up
tests/e2e/vs-bucket.sh                              # the comparison with a plain bucket

It prints the same table and writes the raw results as JSON. Server capacity under many users (the load test) is in docs/performance.md in the repository.