Updating threads stuff

According to performance issues and that kind of stuff, we needed to know the size of the variables and also get the performace time of each example