fixing leak in predicate, instance idx in perf test 2
adding recovery to perf test (not yet done for v2)