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.
ERROR: FIXME: This is a known failure of filelog.size for data starting with \1\nOK.