From https://grafana.wikimedia.org/dashboard/db/resourceloader
This means that every day, every minute, at least one module build takes 200ms. Note that we often a dozen or more modules in a single HTTP request. Not to mention the startup module, which has to compute many more (though for the common case of file modules we have optimisations in place that bypass the module build).
The highest point is even over a minute.
On the other hand, our p95 has not gone above 2ms in over 3 months. This is quite an accomplishment and largely due to our content-based caching for minification and Less compilation. There are many different urls to the same resource essentially (N wikis * N user languages * N skins), and most of these don't vary, so once computed, they're re-used until the resource changes.
However this hasn't changed the fact that Less compilation and other code involved in module build still seems pretty darn slow in case of cache miss.
Plenty of modules that are consistently slow (not just peaks).
From: https://grafana.wikimedia.org/dashboard/db/resourceloadermodule