perf: update perfindex to be more realistic
The previous code was creating a revlog manually, we now use the actual
`localrepo` method to create it.
We have to jump though extra hops to work around the impact of filecache.
#require docutils gettext $ $TESTDIR/check-gendoc zh_CN checking for parse errors