Better perft integration in benchmark