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
- OPA CLI (`opa eval`): useful for experimenting with different inputs and understanding how the policy behaves under various conditions.
151
151
`opa eval` returns the constraints that must be satisfied for a rule to evaluate to `true`.
152
+
-`opa eval` requires an `input.json` file containing the input data to run the policy against.
153
+
You can generate this file using the [gen_input.go](../../scripts/rbac-authz/gen_input.go) script.
154
+
Note: the script currently produces a fixed input. You may need to tweak it for your specific use case.
152
155
153
156
### Full Evaluation
154
157
@@ -188,7 +191,7 @@ To capture memory and CPU profiles, use the following flags:
188
191
-`-memprofile memprofile.out`
189
192
-`-cpuprofile cpuprofile.out`
190
193
191
-
The script [`benchmark_authz.sh`](./scripts/benchmark_authz.sh) runs the `authz` benchmark tests on the current Git branch or compares benchmark results between two branches using [`benchstat`](https://pkg.go.dev/golang.org/x/perf/cmd/benchstat).
194
+
The script [`benchmark_authz.sh`](../../scripts/rbac-authz/benchmark_authz.sh) runs the `authz` benchmark tests on the current Git branch or compares benchmark results between two branches using [`benchstat`](https://pkg.go.dev/golang.org/x/perf/cmd/benchstat).
192
195
`benchstat` compares the performance of a baseline benchmark against a new benchmark result and highlights any statistically significant differences.
0 commit comments