Skip to content

Commit

Permalink
chore: fix typos (#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored Jan 8, 2025
1 parent 86b8fc8 commit 0f75881
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion pkg/bench/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/bench/fanout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/bench/put.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/get.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/mixed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/multipart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/put.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/stat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/versioned.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion yml-samples/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0f75881

Please sign in to comment.