Add performance test for doc#man and refactor version_changes for performance