Comparing performance of a task queued to an existing thread vs. new thread for each task.
Rev. | 6fda31d728ef3197468214fc7bdc5353d38c5ddd |
---|---|
Größe | 511 Bytes |
Zeit | 2017-11-28 10:53:14 |
Autor | Eric Hopper |
Log Message | I'm wrong. You don't need hg-git after all. Back it out. |
A simple little program to test various ways to call functions to see how much
overhead they introduce.
One way is to have a worker thread and communicate to it with a queue. For this
I use the lock-free queue implementation from
[https://github.com/cameron314/readerwriterqueue](https://github.com/cameron314/readerwriterqueue).
This is a git subrepo, so you will also need git to check it out.
To run this on a system with make and a program that calls itself g++ and
accepts g++ flags, just type `make`.