-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor: Improve OPA authorization filter benchmarks #3391
base: master
Are you sure you want to change the base?
Conversation
- Moved benchmarks to a separate file - Added parallel execution to benchmarks - Included benchmarks for minimal policy with/without decision logging - Added reference benchmark running with a policy bundle Signed-off-by: Farasath Ahamed <[email protected]>
2ef7407
to
0216434
Compare
Sample benchmark output
benchstat output for 10 runs
|
// To generate a bundle in .tar.gz format, use the following command: | ||
// ./opa build -b <bundle_directory> -o <output_file.tar.gz> | ||
// For example: | ||
// ./opa build -b simple-opa-bundle -o simple-opa-bundle.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should mention that you have a pre-made directory in this repo. I.e. if you include a line before that goes to that directory it would help
} | ||
|
||
b.ResetTimer() | ||
b.RunParallel(func(pb *testing.PB) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be redundant to general docs for benchmarks but I'd recommend to add the command line with which you run this benchmark and how you control the parallelism. This would help anybody to create reproducible results
Changes,