I would prefer a duplication of several code lines (that can evolve differently in future) to keep independence of correctness and perf tests.