(Originally forked from dvassallo/s3-benchmark)
The performance of a storage system depends on 3 things:
- Your distance to the storage endpoint.
- The size of your objects.
- The number of parallel transfers you can make.
With this tool you can measure the performance of different file and object (S3) operations using different thread counts and object sizes.
curl -OL https://github.com/iternity-dotcom/storage-benchmark/raw/master/build/darwin-amd64/storage-benchmark
curl -OL https://github.com/iternity-dotcom/storage-benchmark/raw/master/build/linux-amd64/storage-benchmark
curl -OL https://github.com/iternity-dotcom/storage-benchmark/raw/master/build/linux-arm64/storage-benchmark
curl -OL https://github.com/iternity-dotcom/storage-benchmark/raw/master/build/windows-amd64/storage-benchmark
For testing S3 endpoints the tool needs credentials with full S3 permissions. The tool will try to find the credentials from the usual places.
Make the file executable:
chmod +x storage-benchmark
Run the --help command to get an overview of the possible parameters
./storage-benchmark --help
-
Install Go
sudo apt-get install golang-go
or
sudo yum install go
may work too.
-
Setup Go environment variables (Usually GOPATH and GOBIN) and test Go installation
-
Clone the repo
-
Install
dep
go get -u github.com/golang/dep/cmd/dep
-
Go to source directory and run
dep ensure
-
Run
go run main.go
This project is released under the MIT License.