diff --git a/README.md b/README.md index f25db56..f223c0e 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,6 @@ Welcome to GoPool, **a project with 95% of the code is generated by GPT**. You c GoPool is a **high-performance**, **feature-rich**, and **easy-to-use** worker pool library for Golang. It is designed to manage and recycle a pool of goroutines to complete tasks concurrently, improving the efficiency and performance of your applications. -
- -
- ## Performance Testing This table shows the performance testing results for three Go libraries: GoPool, [ants](https://github.com/panjf2000/ants), and [pond](https://github.com/alitto/pond). The table includes the time it takes for each library to process 1 million tasks and the memory consumption in MB. @@ -81,6 +77,10 @@ ok github.com/devchat-ai/gopool 3.946s ## Features +
+ +
+ - [x] **Task Queue**: GoPool uses a thread-safe task queue to store tasks waiting to be processed. Multiple workers can simultaneously fetch tasks from this queue. - [x] **Concurrency Control**: GoPool can control the number of concurrent tasks to prevent system overload. diff --git a/README_zh.md b/README_zh.md index cb5ca53..e30f87f 100644 --- a/README_zh.md +++ b/README_zh.md @@ -19,10 +19,6 @@ GoPool 是一个用 Golang 实现的**高性能**、**功能丰富**、**简单易用**的工作池库。它会管理和回收一组 goroutine 来并发完成任务,从而提高你的应用程序的效率和性能。 -
- -
- ## 性能测试 这个表格展示了三个 Go 库 GoPool、[ants](https://github.com/panjf2000/ants) 和 [pond](https://github.com/alitto/pond)的性能测试结果。表格包括每个库处理 100 万个任务所需的时间和内存消耗(以 MB 为单位)。 @@ -81,6 +77,10 @@ ok github.com/devchat-ai/gopool 3.946s ## 特性 +
+ +
+ - [x] **任务队列**:GoPool 使用一个线程安全的任务队列来存储等待处理的任务。多个工作器可以同时从这个队列中获取任务。 - [x] **并发控制**:GoPool 可以控制并发任务的数量,防止系统过载。