From 76537c33bed8e4721ab0916d55bf89e8a77830be Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 27 Jan 2019 02:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8D=BB=20Add=20a=20section=20of=20support?= =?UTF-8?q?ed=20go=20versions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++++++---- README_ZH.md | 18 +++++++++++++----- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3c69ad8..5d73c59 100644 --- a/README.md +++ b/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 ```
diff --git a/README_ZH.md b/README_ZH.md index 28d2d0e..2e187c3 100644 --- a/README_ZH.md +++ b/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 ```