Extract time to complete stats

Add characterization tests. Add minimal test helper to speed up tests
that don't need all of rails. Rename variables to be less verbose and
redundant. Then extract methods for readability.