You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add two benchmarks for compiling ConstraintTemplate: one simple template, and one complex template.
For the simple CT (and the general benchmarking code), I recommend looking at this code. See BenchmarkClient_AddTemplate and makeModule.
For the simple CT, we're trying to find the answer to the question of "What is the largest number of CTs a user could possibly have?"
For the complex CT, find a reasonably complex one from the gatekeeper-library. It doesn't particularly matter which one - so long as it looks complex. The idea is to answer the question "What is the largest number of normal CTs a user can have?"
It'd be best for this to live in its own test file - maybe addtemplate_benchmark_test.go?
The text was updated successfully, but these errors were encountered:
* Add benchmarks for client.AddTemplate
Fixes#151
Signed-off-by: Will Beason <willbeason@google.com>
* Refactor to make module set accesible for other benchmarks
Signed-off-by: Will Beason <willbeason@google.com>
Add two benchmarks for compiling ConstraintTemplate: one simple template, and one complex template.
For the simple CT (and the general benchmarking code), I recommend looking at this code. See
BenchmarkClient_AddTemplate
andmakeModule
.For the simple CT, we're trying to find the answer to the question of "What is the largest number of CTs a user could possibly have?"
For the complex CT, find a reasonably complex one from the gatekeeper-library. It doesn't particularly matter which one - so long as it looks complex. The idea is to answer the question "What is the largest number of normal CTs a user can have?"
It'd be best for this to live in its own test file - maybe
addtemplate_benchmark_test.go
?The text was updated successfully, but these errors were encountered: