perf-lib: fix start/stop of perf tests