-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: improve
/healthz
endpoint performance (#2014)
* Add benchmark for /healthz endpoint This benchmark will measure not only speed but also how much memory each request to /healthz allocate. I'm adding the benchmark to have a baseline to compare. Signed-off-by: Leandro López (inkel) <[email protected]> * Hardcode /healthz body into a variable We know it will always be this value, there's no need to import and call json.MarshalIndent. Signed-off-by: Leandro López (inkel) <[email protected]> * Initialize /healthz body only once Signed-off-by: Leandro López (inkel) <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters