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, socurl ... | bashnever eats its own input. --yesskips only the final "start benchmark" confirmation. It still asks for a missing endpoint or keys.--non-interactivenever prompts. If a value is missing it exits with instructions, which is what you want in CI or cron.--dry-runnever asks for secrets.- Origin, public CDN, and PoP are detected from DNS, ASN, and response headers.
--origin,--cdn, and--popoverride them.
What it measures
- Endpoint discovery: edge and direct IPs, ASN, ICMP, TLS issuer, TTFB range.
- Bucket region (adopted for signing), storage class, and restore state.
- S3 API latency: HeadBucket, ListObjectsV2, and PUT/HEAD/GET/DELETE of a 1 KiB object.
- Single-stream PUT and GET throughput per size. The
standard,full, andmaxprofiles include a 1024 MiB (1 GiB) stream; any other run can request it with--sizes "1 8 64 1024". Large payloads move from a smallTMPDIRto the output filesystem or/var/tmpautomatically. - curl's 99–101 MiB edge and direct limits, with a shared key for the read test.
- A parallel GET/PUT ramp over 1..N TCP connections, plus extra
--othermixed runs, with<- best observed. - 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.
- 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. - 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 MiBis 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
--prefixis removed. The bucket itself is never deleted. - Bucket mutations (lifecycle, encryption, versioning) happen only on a temporary bucket, or with
--allow-mutations. restore-objectis 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
| Code | Meaning |
|---|---|
| 0 | complete |
| 1 | self-test failure |
| 2 | usage or preflight error |
| 3 | completed with warnings or partial data |
| 4 | interrupted |
| 5 | reserved 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.