mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
🍒 Add performance diagram
This commit is contained in:
parent
6cf3ef96e6
commit
56c4356734
@ -241,9 +241,11 @@ Go Version: 1.9
|
||||
|
||||
#### 1000w 任务量
|
||||
|
||||

|
||||

|
||||
|
||||
1000w任务量的场景下,我的电脑已经无法支撑 golang 的原生 goroutine 并发,所以只测出了使用`ants`池的测试结果。
|
||||
### 性能小结
|
||||
|
||||

|
||||
|
||||
**从该demo测试吞吐性能对比可以看出,使用`ants`的吞吐性能相较于原生goroutine可以保持在2-6倍的性能压制,而内存消耗则可以达到10-20倍的节省优势。**
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user