mirror of https://github.com/panjf2000/ants.git
🐯 Add performance diagram
This commit is contained in:
parent
cf89f4e279
commit
8b6b551111
|
@ -248,7 +248,7 @@ In above benchmark picture, the first and second benchmarks performed test cases
|
|||
|
||||
### Performance Summary
|
||||
|
||||
![](https://user-images.githubusercontent.com/7496278/52987864-ed43cd00-3437-11e9-95c8-c4e10b772820.gif)
|
||||
![](https://user-images.githubusercontent.com/7496278/52989187-4104e500-343d-11e9-880f-9641eec436ca.gif)
|
||||
|
||||
**In conclusion, `ants` can up to 2x~6x faster than goroutines without a pool and the memory consumption is reduced by 10 to 20 times.**
|
||||
|
||||
|
|
|
@ -245,7 +245,7 @@ Go Version: 1.9
|
|||
|
||||
### 性能小结
|
||||
|
||||
![](https://user-images.githubusercontent.com/7496278/52987864-ed43cd00-3437-11e9-95c8-c4e10b772820.gif)
|
||||
![](https://user-images.githubusercontent.com/7496278/52989187-4104e500-343d-11e9-880f-9641eec436ca.gif)
|
||||
|
||||
**从该demo测试吞吐性能对比可以看出,使用`ants`的吞吐性能相较于原生goroutine可以保持在2-6倍的性能压制,而内存消耗则可以达到10-20倍的节省优势。**
|
||||
|
||||
|
|
Loading…
Reference in New Issue