docs: improve info about performance
This commit is contained in:
		
							parent
							
								
									95f6eefffa
								
							
						
					
					
						commit
						8ea3043ee4
					
				
							
								
								
									
										12
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								README.md
									
									
									
									
									
								
							@ -2,9 +2,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
[](https://github.com/golangci/golangci-lint-action/actions)
 | 
					[](https://github.com/golangci/golangci-lint-action/actions)
 | 
				
			||||||
 | 
					
 | 
				
			||||||

 | 
					It's the official GitHub action for [golangci-lint](https://github.com/golangci/golangci-lint) from it's authors.
 | 
				
			||||||
 | 
					The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The action that runs [golangci-lint](https://github.com/golangci/golangci-lint) and reports issues from linters.
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## How to use
 | 
					## How to use
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -57,13 +58,12 @@ The action was implemented with performance in mind:
 | 
				
			|||||||
2. We don't use Docker because image pulling is slow.
 | 
					2. We don't use Docker because image pulling is slow.
 | 
				
			||||||
3. We do as much as we can in parallel, e.g. we download cache, go and golangci-lint binary in parallel.
 | 
					3. We do as much as we can in parallel, e.g. we download cache, go and golangci-lint binary in parallel.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
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.
 | 
					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:
 | 
				
			||||||
But the total execution time of the action on [golangci-lint](https://github.com/golangci/golangci-lint) repository is 14s:
 | 
					 | 
				
			||||||
  * in parallel:
 | 
					  * in parallel:
 | 
				
			||||||
    * 13s to download Go
 | 
					    * 13s to download Go
 | 
				
			||||||
    * 3.7s to restore 50 MB of cache
 | 
					    * 4s to restore 50 MB of cache
 | 
				
			||||||
    * 1s to find and install `golangci-lint`
 | 
					    * 1s to find and install `golangci-lint`
 | 
				
			||||||
  * 1s to run `golangci-lint`
 | 
					  * 1s to run `golangci-lint` (it takes 35s without cache)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Internals
 | 
					## Internals
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user