opa bench
Benchmark a Rego query
Options
Name | Description |
---|---|
--benchmem | Report memory allocations with benchmark results |
--bundle, -b <bundle> | Set bundle file(s) or directory path(s). This flag can be repeated |
--count <count> | Number of times to repeat each benchmark |
--data, -d <data> | Set policy or data file(s). This flag can be repeated |
--fail | Exits with non-zero exit code on undefined/empty result and errors |
--format, -f <format> | Set output format |
--ignore <ignore> | Set file and directory names to ignore during loading (e.g., '.*' excludes hidden files) |
--import <import> | Set query import(s). This flag can be repeated |
--input, -i <input> | Set input file path |
--metrics | Report query performance metrics |
--package <package> | Set query package |
--partial, -p | Perform partial evaluation |
--schema, -s <schema> | Set schema file path or directory path |
--stdin | Read query from stdin |
--stdin-input, -I | Read input document from stdin |
--target, -t <target> | Set the runtime to exercise |
--unknowns, -u <unknowns> |
|
--help, -h | Help for bench |