perf(view_factory): add a benchmark that measures view_factory in isolation

Closes #1384