added performance test tool
implemented perf tool
a function to count a number of cores is available