Skip to content

Commit 95f6eef

Browse files
committed
docs: add perf stat into README.md
1 parent 977a01f commit 95f6eef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ The action was implemented with performance in mind:
5757
2. We don't use Docker because image pulling is slow.
5858
3. We do as much as we can in parallel, e.g. we download cache, go and golangci-lint binary in parallel.
5959
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:
62+
* in parallel:
63+
* 13s to download Go
64+
* 3.7s to restore 50 MB of cache
65+
* 1s to find and install `golangci-lint`
66+
* 1s to run `golangci-lint`
67+
6068
## Internals
6169

6270
We use JavaScript-based action. We don't use Docker-based action because:

0 commit comments

Comments
 (0)