Comparing performance of a task queued to an existing thread vs. new thread for each task.
修订版 | e809e70656342e63bd85cbb11eea90e043594a5f (tree) |
---|---|
时间 | 2017-03-24 06:22:53 |
作者 | Eric Hopper <hopper@omni...> |
Commiter | Eric Hopper |
Add a README to explain what this is about.
@@ -0,0 +1,9 @@ | ||
1 | +A simple little program to test various ways to call functions to see how much | |
2 | +overhead they introduce. | |
3 | + | |
4 | +One way is to have a worker thread and communicate to it with a queue. For this | |
5 | +I use the lock-free queue implementation from | |
6 | +[https://github.com/cameron314/readerwriterqueue](https://github.com/cameron314/readerwriterqueue). | |
7 | + | |
8 | +I include that as an hg subrepo using a git+https url, so you will need the | |
9 | +hg-git extension to check it out. |