From 0f75881af3425db881429997bfd9e9e4f5f480c3 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Wed, 8 Jan 2025 06:52:51 -0500 Subject: [PATCH] chore: fix typos (#359) Signed-off-by: Rui Chen --- README.md | 4 ++-- pkg/bench/benchmark.go | 2 +- pkg/bench/fanout.go | 2 +- pkg/bench/put.go | 2 +- yml-samples/delete.yml | 2 +- yml-samples/get.yml | 2 +- yml-samples/list.yml | 2 +- yml-samples/mixed.yml | 2 +- yml-samples/multipart.yml | 2 +- yml-samples/put.yml | 2 +- yml-samples/stat.yml | 2 +- yml-samples/versioned.yml | 2 +- yml-samples/zip.yml | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 790d1fb4..4481224b 100644 --- a/README.md +++ b/README.md @@ -379,14 +379,14 @@ To test [POST Object](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObject Benchmarking delete operations will attempt to delete as many objects it can within `--duration`. -By default, `--objects` objects of size `--obj.size` are uploaded beforing doin the actual bench. +By default, `--objects` objects of size `--obj.size` are uploaded before doing the actual bench. The delete operations are done in `--batch` objects per request in `--concurrent` concurrently running requests. If there are no more objects left the benchmark will end. Using `--list-existing` will list at most `--objects` from the bucket and delete them instead of -deleting random objects (set it to 0 to use all objects from the lsiting). +deleting random objects (set it to 0 to use all objects from the listing). Listing is restricted to `--prefix` if it is set and recursive listing can be disabled by setting `--list-flat`. The analysis will include the upload stats as `PUT` operations and the `DELETE` operations. diff --git a/pkg/bench/benchmark.go b/pkg/bench/benchmark.go index 29cc593e..ad0ef4fe 100644 --- a/pkg/bench/benchmark.go +++ b/pkg/bench/benchmark.go @@ -239,7 +239,7 @@ func (c *Common) deleteAllInBucket(ctx context.Context, prefixes ...string) { } } -// prepareProgress updates preparation progess with the value 0->1. +// prepareProgress updates preparation progress with the value 0->1. func (c *Common) prepareProgress(progress float64) { if c.PrepareProgress == nil { return diff --git a/pkg/bench/fanout.go b/pkg/bench/fanout.go index f7bb2f93..53ac6492 100644 --- a/pkg/bench/fanout.go +++ b/pkg/bench/fanout.go @@ -34,7 +34,7 @@ type Fanout struct { prefixes map[string]struct{} } -// Prepare will create an empty bucket ot delete any content already there. +// Prepare will create an empty bucket or delete any content already there. func (u *Fanout) Prepare(ctx context.Context) error { return u.createEmptyBucket(ctx) } diff --git a/pkg/bench/put.go b/pkg/bench/put.go index 6de1492c..bfe09c78 100644 --- a/pkg/bench/put.go +++ b/pkg/bench/put.go @@ -39,7 +39,7 @@ type Put struct { cl *http.Client } -// Prepare will create an empty bucket ot delete any content already there. +// Prepare will create an empty bucket or delete any content already there. func (u *Put) Prepare(ctx context.Context) error { if u.PostObject { u.cl = &http.Client{ diff --git a/yml-samples/delete.yml b/yml-samples/delete.yml index 777382c8..67ad2a4b 100644 --- a/yml-samples/delete.yml +++ b/yml-samples/delete.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/get.yml b/yml-samples/get.yml index cb5aa58f..1ca2945f 100644 --- a/yml-samples/get.yml +++ b/yml-samples/get.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/list.yml b/yml-samples/list.yml index 4921a5be..86ebf426 100644 --- a/yml-samples/list.yml +++ b/yml-samples/list.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/mixed.yml b/yml-samples/mixed.yml index 74599535..9dbcb9a7 100644 --- a/yml-samples/mixed.yml +++ b/yml-samples/mixed.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/multipart.yml b/yml-samples/multipart.yml index 1bfcec7d..d5c7d3f2 100644 --- a/yml-samples/multipart.yml +++ b/yml-samples/multipart.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/put.yml b/yml-samples/put.yml index 785bfb4b..da0f2df7 100644 --- a/yml-samples/put.yml +++ b/yml-samples/put.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/stat.yml b/yml-samples/stat.yml index dd123320..fef3ab10 100644 --- a/yml-samples/stat.yml +++ b/yml-samples/stat.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/versioned.yml b/yml-samples/versioned.yml index 5cd4ac5e..95784e6d 100644 --- a/yml-samples/versioned.yml +++ b/yml-samples/versioned.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: diff --git a/yml-samples/zip.yml b/yml-samples/zip.yml index 12d9637e..6a0cdd9c 100644 --- a/yml-samples/zip.yml +++ b/yml-samples/zip.yml @@ -39,7 +39,7 @@ warp: # Specify one or more hosts. # The benchmark will be run against all hosts concurrently. - # Multiple servers can be specified with elipsis notation; + # Multiple servers can be specified with ellipsis notation; # for example '10.0.0.{1...10}:9000' specifies 10 hosts. # See more at https://github.com/minio/warp?tab=readme-ov-file#multiple-hosts host: