Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rabbbit
Copy link
Contributor

@rabbbit rabbbit commented Jul 10, 2022

In #93 @storozhukBM adds test parallization, which is unrelated
to the actual change. I'd rather have this as a separate PR.

The test currently take ~12 seconds on my laptop, so I see why we might
want to run them in parallel. There are other parallelization
opportunities (we could paralelize each of the subtests for each
of the rate-limiters), but this is a good start.

Before:

> go test ./... -race -count 1
ok      go.uber.org/ratelimit   12.739s

After:

> go test ./... -race -count 1
ok      go.uber.org/ratelimit   6.178s

In #93 @storozhukBM adds test parallization, which is unrelated
to the actual change. I'd rather have this as a separate PR.

The test currently take ~12 seconds on my laptop, so I see why we might
want to run them in parallel. There are other parallelization
opportunities (we could paralelize each of the subtests for each
of the rate-limiters), but this is a good start.

Before:
```
> go test ./... -race -count 1
ok      go.uber.org/ratelimit   12.739s
```

After:
```
> go test ./... -race -count 1
ok      go.uber.org/ratelimit   6.178s
```
@codecov
Copy link

codecov bot commented Jul 10, 2022

Codecov Report

Merging #98 (16b573b) into main (29ac3a2) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #98   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines           97        97           
=========================================
  Hits            97        97           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29ac3a2...16b573b. Read the comment docs.

@rabbbit
Copy link
Contributor Author

rabbbit commented Jul 10, 2022

Given this is straighforward, should have no impact and only affects development, merging this in.

@rabbbit rabbbit merged commit af246a4 into main Jul 10, 2022
@rabbbit rabbbit deleted the pawel/parallel branch July 10, 2022 20:26
storozhukBM pushed a commit to storozhukBM/ratelimit that referenced this pull request Jul 13, 2022
In uber-go#93 @storozhukBM adds test parallization, which is unrelated
to the actual change. I'd rather have this as a separate PR.

The test currently take ~12 seconds on my laptop, so I see why we might
want to run them in parallel. There are other parallelization
opportunities (we could paralelize each of the subtests for each
of the rate-limiters), but this is a good start.

Before:
```
> go test ./... -race -count 1
ok      go.uber.org/ratelimit   12.739s
```

After:
```
> go test ./... -race -count 1
ok      go.uber.org/ratelimit   6.178s
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants