🍻 Add a section of supported go versions

This commit is contained in:
Andy Pan 2019-01-27 02:07:33 +08:00
parent 908553139c
commit 76537c33be
2 changed files with 25 additions and 9 deletions

View File

@ -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>

View File

@ -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
```