Add CSV headers + README.md
This commit is contained in:
parent
98526d6548
commit
cf89cb1aee
2 changed files with 32 additions and 0 deletions
31
README.md
Normal file
31
README.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# s3lat
|
||||
|
||||
## installation
|
||||
|
||||
```bash
|
||||
go get git.deuxfleurs.fr/quentin/s3lat@latest
|
||||
```
|
||||
|
||||
## usage
|
||||
|
||||
with minio:
|
||||
|
||||
```
|
||||
export ENDPOINT=[fc00:9a7a:9e::1]:9000
|
||||
export AWS_ACCESS_KEY_ID=minioadmin
|
||||
export AWS_SECRET_ACCESS_KEY=minioadmin
|
||||
|
||||
mc alias set minio-bench http://$ENDPOINT $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY
|
||||
mc mb minio-bench/bench1
|
||||
|
||||
s3lat
|
||||
```
|
||||
|
||||
## todo
|
||||
|
||||
create bucket from s3lat
|
||||
|
||||
## see also
|
||||
|
||||
- https://git.deuxfleurs.fr/quentin/benchmarks
|
||||
- https://git.deuxfleurs.fr/trinity-1686a/mknet
|
1
main.go
1
main.go
|
@ -23,6 +23,7 @@ import (
|
|||
|
||||
|
||||
func main() {
|
||||
fmt.Printf("op,latency\n")
|
||||
_, isSSL := os.LookupEnv("SSL");
|
||||
opts := minio.Options {
|
||||
Creds: credentials.NewStaticV4(os.Getenv("AWS_ACCESS_KEY_ID"), os.Getenv("AWS_SECRET_ACCESS_KEY"), ""),
|
||||
|
|
Loading…
Reference in a new issue