I don't like that you're duplicating standard main code here. Can this not be done with the second argument of the `CV_PERF_TEST_MAIN_IMPLS`?