BucketBuster is a benchmark for S3-compatible object storage. It runs from one shell script, talks to the endpoint with curl, and prints a report you can read on screen or save as text, JSON, or CSV. The approach is the same one YABS uses for servers, just aimed at buckets.

At a glance. One file: BucketBuster.sh. Needs Bash 4+, curl 7.75+ built with --aws-sigv4, jq, openssl, and base64. Optional: dig, whois, mtr, ping. No aws CLI and no Python.

Quick start

The script prompts for anything it still needs, and it reads those prompts from /dev/tty rather than stdin, so piping it into Bash works.

# Nothing but the script: it asks for what it needs on /dev/tty
curl -fsSL https://your-host/BucketBuster.sh | bash

# Same, with flags (note `bash -s --`)
curl -fsSL https://your-host/BucketBuster.sh | bash -s -- --yes --profile quick

# Temporary bucket, full profile, cleaned up on exit
./BucketBuster.sh --yes \
  --endpoint https://s3.example.com \
  --access-key "$AWS_ACCESS_KEY_ID" \
  --secret-key "$AWS_SECRET_ACCESS_KEY" \
  --region us-east-1

# Quick smoke test
./BucketBuster.sh --yes --profile quick --sizes 1 --threads 1 \
  --endpoint https://s3.example.com \
  --access-key ... --secret-key ...

# Benchmark an existing bucket (only the chosen prefix is touched)
./BucketBuster.sh --yes --bucket my-bucket --prefix bench-$(date +%s) ...

# Print the plan without credentials
./BucketBuster.sh --dry-run --endpoint https://s3.example.com --profile quick

# Offline checks
./BucketBuster.sh --selftest

Credentials can also come from AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY / AWS_SESSION_TOKEN, ~/.aws/credentials, or --save-creds (stored with mode 0600).

Interactive prompts

When a controlling terminal exists, only the missing values are asked for:

Connection
---------------------------------
Endpoint            : https://s3.stored.cloud
Access key ID       : ...
Secret access key   : ...          # no echo
Region              : [us-east-1]
Direct endpoint     : [https://s3-direct.stored.cloud]
  • Prompts read from /dev/tty, never stdin, so curl ... | bash never eats its own input.
  • --yes skips only the final "start benchmark" confirmation. It still asks for a missing endpoint or keys.
  • --non-interactive never prompts. If a value is missing it exits with instructions, which is what you want in CI or cron.
  • --dry-run never asks for secrets.
  • Origin, public CDN, and PoP are detected from DNS, ASN, and response headers. --origin, --cdn, and --pop override them.

What it measures

  1. Endpoint discovery: edge and direct IPs, ASN, ICMP, TLS issuer, TTFB range.
  2. Bucket region (adopted for signing), storage class, and restore state.
  3. S3 API latency: HeadBucket, ListObjectsV2, and PUT/HEAD/GET/DELETE of a 1 KiB object.
  4. Single-stream PUT and GET throughput per size. The standard, full, and max profiles include a 1024 MiB (1 GiB) stream; any other run can request it with --sizes "1 8 64 1024". Large payloads move from a small TMPDIR to the output filesystem or /var/tmp automatically.
  5. curl's 99–101 MiB edge and direct limits, with a shared key for the read test.
  6. A parallel GET/PUT ramp over 1..N TCP connections, plus extra --other mixed runs, with <- best observed.
  7. A multipart upload of one object in 8 MiB parts, repeated across a connection ramp. Each run uses CreateMultipartUpload, concurrent UploadPart requests, and CompleteMultipartUpload, so multi-connection upload throughput is measured separately from the plain PUT ramp.
  8. A recovery and repeat-read timeline with real elapsed labels (~4.4 min) and the service's actual HTTP status or error code, without assumptions.
  9. Limits and quirks: request cap, key length, storage class, virtual-host, HTTP/2, conditional PUT, tagging, range, Content-MD5, Unicode, presign.

Output

You get a colour terminal report, out/bucketbuster-<stamp>.txt, and optionally --json and --csv. JSON is validated; if validation fails, a minimal valid document is still written. Results are written on interrupt or failure as well. CSV rows are single, parallel-other, and multipart-<connections>c.

Multipart and multiple connections

The default run does both:

  • Plain parallel ramp. The same object is GET/PUT over 1, 2, 4, ... TCP connections, showing how throughput scales with client concurrency.
  • Multipart upload ramp. An object of parts × 8 MiB is uploaded using separate part requests. The stage runs the same object at each connection count, so the table shows whether the provider benefits from concurrent parts. Each run is completed and then deleted; a failed run is aborted so no upload parts are left behind.
# default profile ramp
./BucketBuster.sh --yes ...

# four 8 MiB parts, one and three concurrent part uploads
./BucketBuster.sh --yes --mpu-parts 4 --mpu-conns "1 3" ...

# no multipart stage
./BucketBuster.sh --yes --no-multipart ...

Defaults: 8 parts (64 MiB) on quick/standard/full, 16 parts (128 MiB) on max. Connection defaults are quick 1 4, standard/full 1 4 8, and max 1 8 16. --mpu-parts accepts 2..16; --mpu-conns values must be 1..parts.

Safety

  • Temporary buckets are deleted on exit, including objects, versions, and multipart uploads.
  • With an existing bucket, only --prefix is removed. The bucket itself is never deleted.
  • Bucket mutations (lifecycle, encryption, versioning) happen only on a temporary bucket, or with --allow-mutations.
  • restore-object is opt-in through --test-restore, because it can cost money.
  • Credentials are passed to curl through a 0600 config file, never on the command line.

Exit codes

CodeMeaning
0complete
1self-test failure
2usage or preflight error
3completed with warnings or partial data
4interrupted
5reserved for write-budget aborts

Options

Run ./BucketBuster.sh --help for the full list. The ones that matter most:

--profile quick|standard|full|max
--sizes "1 8 64"      --threads "1 4 16"
--other "PUT:8:32 GET:16:8"
--mpu-parts 8         --mpu-conns "1 4 8"  --no-multipart
--max-bytes N         --recovery-long
--bucket NAME         --prefix PATH        --keep
--json FILE           --csv FILE           --out-dir DIR
--quiet               --verdict            --no-quirks
--allow-mutations     --test-restore
--origin/--cdn/--pop  (auto-detected when omitted)

The original script audit lives in AUDIT.md next to the script.