There is no need to detect the format and then the version when both can be done at the same time. Add a benchmark as well, on large and small atom and rss files.