summaryrefslogtreecommitdiff
path: root/selftest.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-24 19:16:36 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-04-24 19:16:36 -0700
commitcafbe44dde55e57115cc654610172556dff19bec (patch)
tree3e6e22d491535e16e97c94388b7ec02e3b7f0c2a /selftest.cpp
parent6234bfd8bf47ad3fc1f5b87adea73c62839f2864 (diff)
downloadinfinitytier-cafbe44dde55e57115cc654610172556dff19bec.tar.gz
infinitytier-cafbe44dde55e57115cc654610172556dff19bec.zip
Controller optimizations -- make locking more fine-grained, use true hardware concurrency, etc.
Diffstat (limited to 'selftest.cpp')
-rw-r--r--selftest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/selftest.cpp b/selftest.cpp
index 91d304a6..33e65f2c 100644
--- a/selftest.cpp
+++ b/selftest.cpp
@@ -25,6 +25,7 @@
#include <iostream>
#include <string>
#include <vector>
+#include <thread>
#include "node/Constants.hpp"
#include "node/Hashtable.hpp"
@@ -1114,6 +1115,7 @@ int main(int argc,char **argv)
*/
std::cout << "[info] sizeof(void *) == " << sizeof(void *) << std::endl;
+ std::cout << "[info] hardware concurrency == " << std::thread::hardware_concurrency() << std::endl;
std::cout << "[info] sizeof(NetworkConfig) == " << sizeof(ZeroTier::NetworkConfig) << std::endl;
srand((unsigned int)time(0));