measure execution time of parallel and series