Case in point:
Our test suite produces a lot of messages, which cause noticeable slowdowns when trying to view a revision. (It takes ~13 seconds with xhprof enabled).
I've pinpointed the issue to (amongst others) HarbormasterUnitStatus::getUnitStatusSort, which takes up the bulk of loading the page.
Sample xhprof profile: