🐯 Add performance diagram

This commit is contained in:
Andy Pan 2019-02-19 11:58:05 +08:00
parent cf89f4e279
commit 8b6b551111
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ In above benchmark picture, the first and second benchmarks performed test cases
### Performance Summary ### 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.** **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.**

View File

@ -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倍的节省优势。** **从该demo测试吞吐性能对比可以看出使用`ants`的吞吐性能相较于原生goroutine可以保持在2-6倍的性能压制而内存消耗则可以达到10-20倍的节省优势。**