Skip to content

Commit 8ea3043

Browse files
committed
docs: improve info about performance
1 parent 95f6eef commit 8ea3043

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
[![Build Status](https://github.com/golangci/golangci-lint-action/workflows/build-and-test/badge.svg)](https://github.com/golangci/golangci-lint-action/actions)
44

5-
![GitHub Annotations](./static/annotations.png)
5+
It's the official GitHub action for [golangci-lint](https://github.com/golangci/golangci-lint) from it's authors.
6+
The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
67

7-
The action that runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
8+
![GitHub Annotations](./static/annotations.png)
89

910
## How to use
1011

@@ -57,13 +58,12 @@ The action was implemented with performance in mind:
5758
2. We don't use Docker because image pulling is slow.
5859
3. We do as much as we can in parallel, e.g. we download cache, go and golangci-lint binary in parallel.
5960
60-
For example, in a repository of [golangci-lint](https://github.com/golangci/golangci-lint) running this action without the cache takes 35s, but with cache takes 800ms.
61-
But the total execution time of the action on [golangci-lint](https://github.com/golangci/golangci-lint) repository is 14s:
61+
For example, in a repository of [golangci-lint](https://github.com/golangci/golangci-lint) running this action without the cache takes 50s, but with cache takes 14s:
6262
* in parallel:
6363
* 13s to download Go
64-
* 3.7s to restore 50 MB of cache
64+
* 4s to restore 50 MB of cache
6565
* 1s to find and install `golangci-lint`
66-
* 1s to run `golangci-lint`
66+
* 1s to run `golangci-lint` (it takes 35s without cache)
6767

6868
## Internals
6969

0 commit comments

Comments
 (0)