exegesis-plugin-servertime
Summary
This is a plugin for exegesis which uses the servertime package to add a "server-timing" header to your requests, showing the different parts of Exegesis processing and how long each part is taking (routing, security, controller execution, response validation, etc...).
Installation
npm install exegesis-plugin-servertime
Example
To use, just add this to your Exegesis options:
; options = plugins: ;
You can also time specific parts of your controllers:
Note that the "controller" timing will still show the overall length of time to took to run the controller.
Limitations
We reporting timing for the response validation, but not for the request validation. Request validation is done "lazily" in Exegesis. It is always done before the controller runs, but when exactly it happens depends on a number of factors, and what other plugins are instaled, so it's not the easiest thing to measure. In general you can assume that request validation falls under the umbrella of "controller", though.
Copyright 2020 Jason Walton