Comparing performance of a task queued to an existing thread vs. new thread for each task.
修订版 | 4c2376781ab248f5d09a833d980897271e92f81c (tree) |
---|---|
时间 | 2017-04-04 08:45:36 |
作者 | Eric Hopper <hopper@omni...> |
Commiter | Eric Hopper |
Added a Makefile so people could just run make to get results.
@@ -0,0 +1,10 @@ | ||
1 | +CXX=g++ -std=c++1z -march=native -mtune=native | |
2 | +CXXFLAGS=-Wall -pedantic -Ofast | |
3 | + | |
4 | +.PHONY: speedcheck | |
5 | + | |
6 | +speedcheck: tcps | |
7 | + ./tcps | |
8 | + | |
9 | +tcps: test_thread.cpp do_something.cpp | |
10 | + $(CXX) $(CXXFLAGS) -pthread -o "$@" $^ |