use 1/2 cpu cores for testing