Move and simplify benchmark filter code.
Move and simplify benchmark filter code.

Weasyl/misaka,lepture/misaka,lepture/misaka,Weasyl/misaka,FSX/misaka,lepture/misaka,Weasyl/misaka,Weasyl/misaka,Weasyl/misaka,FSX/misaka,FSX/misaka,FSX/misaka