perf: use `setup` function in `perfdirstatedirs`
The command seems to pre-date the introduction of the `setup` support in timer.
We move the line that is obviously about benchmark setup in such `setup`
function.
#require docutils gettext $ $TESTDIR/check-gendoc zh_CN checking for parse errors