Helper function benchmarkParallelCmd().