• R/O
  • SSH

Source Tree

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Comparing performance of a task queued to an existing thread vs. new thread for each task.


Nombre Tamaño Rev. Tiempo Autor Log Message
.hgignore 18 61272ca01328 2017-03-24 06:15:58 Eric Hopper <hopper@omnifarious.org> Ignore what I've currently called the...
.hgsub 77 38cf800ec1a9 2017-04-04 06:12:29 Eric Hopper <hopper@omnifarious.org> Use git repo directly instead of thro...
.hgsubstate 59 38cf800ec1a9 2017-04-04 06:12:29 Eric Hopper <hopper@omnifarious.org> Use git repo directly instead of thro...
Makefile 205 4c2376781ab2 2017-04-04 08:45:36 Eric Hopper <hopper@omnifarious.org> Added a Makefile so people could just...
README.md 511 6fda31d728ef 2017-11-28 10:53:14 Eric Hopper <hopper@omnifarious.org> I'm wrong. You don't need hg-git afte...
atomicops.h 29 450c4661537c 2017-03-24 02:27:44 Eric Hopper <hopper@omnifarious.org> Header files expect to be in . so hav...
do_something.cpp 31 6364b03e62e6 2017-03-24 02:23:40 Eric Hopper <hopper@omnifarious.org> Just threads vs. raw function call fo...
readerwriterqueue.h 37 450c4661537c 2017-03-24 02:27:44 Eric Hopper <hopper@omnifarious.org> Header files expect to be in . so hav...
test_thread.cpp 3.32 k be5c4a1b3527 2017-09-01 03:07:52 Eric Hopper <hopper@omnifarious.org> Make magnitude of numbers more easily...

README.md

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.