mirror of https://github.com/panjf2000/ants.git
🍻 Add a section of supported go versions
This commit is contained in:
parent
908553139c
commit
76537c33be
16
README.md
16
README.md
|
@ -22,6 +22,14 @@ Library `ants` implements a fixed capacity goroutine-pool for managing and recyc
|
|||
- Handle panic gracefully to prevent programs from crash.
|
||||
- Efficient in memory usage and it even achieves higher performance than unlimited goroutines in golang.
|
||||
|
||||
## Tested in the following Golang versions:
|
||||
|
||||
- 1.8.x
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
- master
|
||||
|
||||
|
||||
## How to install
|
||||
|
||||
|
@ -194,11 +202,11 @@ All the tasks submitted to `ants` pool will not be guaranteed to be addressed in
|
|||
## Benchmarks
|
||||
|
||||
```
|
||||
OS : macOS High Sierra
|
||||
Processor : 2.7 GHz Intel Core i5
|
||||
Memory : 8 GB 1867 MHz DDR3
|
||||
OS: macOS High Sierra
|
||||
Processor: 2.7 GHz Intel Core i5
|
||||
Memory: 8 GB 1867 MHz DDR3
|
||||
|
||||
Go1.9
|
||||
Go Version: 1.9
|
||||
```
|
||||
|
||||
<div align="center"><img src="https://user-images.githubusercontent.com/7496278/51515466-c7ce9e00-1e4e-11e9-89c4-bd3785b3c667.png"/></div>
|
||||
|
|
18
README_ZH.md
18
README_ZH.md
|
@ -14,7 +14,7 @@
|
|||
|
||||
`ants`是一个高性能的协程池,实现了对大规模goroutine的调度管理、goroutine复用,允许使用者在开发并发程序的时候限制协程数量,复用资源,达到更高效执行任务的效果。
|
||||
|
||||
## 功能:
|
||||
## 功能:
|
||||
|
||||
- 实现了自动调度并发的goroutine,复用goroutine
|
||||
- 定时清理过期的goroutine,进一步节省资源
|
||||
|
@ -22,6 +22,14 @@
|
|||
- 优雅处理panic,防止程序崩溃
|
||||
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生goroutine并发具有更高的性能
|
||||
|
||||
## 目前测试通过的Golang版本:
|
||||
|
||||
- 1.8.x
|
||||
- 1.9.x
|
||||
- 1.10.x
|
||||
- 1.11.x
|
||||
- master
|
||||
|
||||
|
||||
## 安装
|
||||
|
||||
|
@ -191,11 +199,11 @@ pool.Release()
|
|||
系统参数:
|
||||
|
||||
```
|
||||
OS : macOS High Sierra
|
||||
Processor : 2.7 GHz Intel Core i5
|
||||
Memory : 8 GB 1867 MHz DDR3
|
||||
OS: macOS High Sierra
|
||||
Processor: 2.7 GHz Intel Core i5
|
||||
Memory: 8 GB 1867 MHz DDR3
|
||||
|
||||
Go1.9
|
||||
Go Version: 1.9
|
||||
```
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue