Skip to content

Ideas to improve performance for dbachecks with Pester v5 compared to v4? Getting a single Tag from a file with 100 +Tags #2331

Answered by nohwnd
SQLDBAWithABeard asked this question in Q&A
Discussion options

You must be logged in to vote

@SQLDBAWithABeard that code is cleaning up orphaned mock hook functions that might be in place when you cancel a run. In non-interactive session this code should be rarely needed (so maybe we can skip it). It runs once per run (once per Invoke-Pester), how many times are you calling Invoke-Pester? It shows 38 hits above. The time impact is probably constant ~5s for both multiple filters and single filter.

Replies: 4 comments 15 replies

Comment options

You must be logged in to vote
15 replies
@SQLDBAWithABeard
Comment options

@SQLDBAWithABeard
Comment options

@nohwnd
Comment options

@SQLDBAWithABeard
Comment options

@nohwnd
Comment options

Answer selected by nohwnd
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants