Measure performance multi threading