Comparing performance of a task queued to an existing thread vs. new thread for each task.
Rev. | Time | Author | Message |
---|---|---|---|
6fda31d728ef | 2017-11-28 10:53:14 | Eric Hopper | tip I'm wrong. You don't need hg-git after all. Back it out. |
5fc438bf2dfa | 2017-11-28 10:50:55 | Eric Hopper | Mentioning needing hg-git in README. |
be5c4a1b3527 | 2017-09-01 03:07:52 | Eric Hopper | Make magnitude of numbers more easily compared by setting... |
409f9b966f30 | 2017-06-03 09:47:40 | Eric Hopper | Add in system for selecting subset of tests. |
76283aa87338 | 2017-06-03 09:47:21 | Eric Hopper | auto return type not supported for lambda in C++11. |
55a9fdf10c98 | 2017-04-04 08:49:33 | Eric Hopper | Put instructions on how to run in README.md |
4c2376781ab2 | 2017-04-04 08:45:36 | Eric Hopper | Added a Makefile so people could just run make to get res... |
38cf800ec1a9 | 2017-04-04 06:12:29 | Eric Hopper | Use git repo directly instead of through hg-git. |
e809e7065634 | 2017-03-24 06:22:53 | Eric Hopper | Add a README to explain what this is about. |
61272ca01328 | 2017-03-24 06:15:58 | Eric Hopper | Ignore what I've currently called the executable. |
Name | Rev. | Time | Author |
---|---|---|---|
tip | 6fda31d728ef | 2017-11-28 10:53:14 | Eric Hopper |
Name | Rev. | Time | Author | Message |
---|---|---|---|---|
default | 6fda31d728ef | 2017-11-28 10:53:14 | Eric Hopper | I'm wrong. You don't need h... |
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.
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
.