Compile command g++ -std=c++14 -O3 test.cpp ../src/mtrebi.cpp -lpthread Warning Do not use this. It gets stuck when runing out_100 sometimes.