diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-24 19:16:36 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-04-24 19:16:36 -0700 |
commit | cafbe44dde55e57115cc654610172556dff19bec (patch) | |
tree | 3e6e22d491535e16e97c94388b7ec02e3b7f0c2a /selftest.cpp | |
parent | 6234bfd8bf47ad3fc1f5b87adea73c62839f2864 (diff) | |
download | infinitytier-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.cpp | 2 |
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)); |