Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in performance docs #1350

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/src/docs/usage/performance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ title: Performance
A trade-off between memory usage and execution time can be controlled by [`GOGC`](https://golang.org/pkg/runtime/#hdr-Environment_Variables) environment variable.
Less `GOGC` values trigger garbage collection more frequently and golangci-lint consumes less memory and more CPU. Below is the trade-off table for running on this repo:

| `GOGC` | Peak Memory, GB | Executon Time, s |
| --------------- | --------------- | ---------------- |
| `5` | 1.1 | 60 |
| `10` | 1.1 | 34 |
| `20` | 1.3 | 25 |
| `30` | 1.6 | 20.2 |
| `50` | 2.0 | 17.1 |
| `80` | 2.2 | 14.1 |
| `100` (default) | 2.2 | 13.8 |
| `off` | 3.2 | 9.3 |
| `GOGC` | Peak Memory, GB | Execution Time, s |
| --------------- | --------------- | ----------------- |
| `5` | 1.1 | 60 |
| `10` | 1.1 | 34 |
| `20` | 1.3 | 25 |
| `30` | 1.6 | 20.2 |
| `50` | 2.0 | 17.1 |
| `80` | 2.2 | 14.1 |
| `100` (default) | 2.2 | 13.8 |
| `off` | 3.2 | 9.3 |

## Why `golangci-lint` is so fast

Expand Down