How should I choose unit length for switchback testing? And for how long should I run a switchback test?

What’s the best way to determine unit length to use in a switchback test? Once I’ve decided on the unit length, is there a best practice for how long to run the test?