Files
Stephan Renatus 8853b19a12 e2e/authz,topdown: fix benchmarks (#7980)
Before, we'd see these benchmarks die with

    benchmark.go:412: B.Loop called with timer stopped

Now, we can run them again:

```
% go test -bench=. -v -run=XXX ./v1/test/e2e/authz
{
  "level": "info",
  "msg": "Test server ready and listening on: http://127.0.0.1:64200",
  "time": "2025-10-15T11:44:06+02:00"
}
goos: darwin
goarch: arm64
pkg: github.com/open-policy-agent/opa/v1/test/e2e/authz
cpu: Apple M4 Max
BenchmarkRESTAuthzForbidAuthn
BenchmarkRESTAuthzForbidAuthn-16           22623             52375 ns/op
BenchmarkRESTAuthzForbidPath
BenchmarkRESTAuthzForbidPath-16            16729             71916 ns/op
BenchmarkRESTAuthzForbidMethod
BenchmarkRESTAuthzForbidMethod-16          16434             72963 ns/op
BenchmarkRESTAuthzAllow10Paths
BenchmarkRESTAuthzAllow10Paths-16          15883             74936 ns/op
BenchmarkRESTAuthzAllow100Paths
BenchmarkRESTAuthzAllow100Paths-16         10000            109283 ns/op
BenchmarkRESTAuthzAllow1000Paths
BenchmarkRESTAuthzAllow1000Paths-16         2731            462167 ns/op
PASS
ok      github.com/open-policy-agent/opa/v1/test/e2e/authz      13.349s
```

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
2025-10-15 12:47:08 +02:00
..
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:27:34 +01:00
2025-06-23 11:40:00 +02:00
2025-01-30 09:57:27 +01:00
2025-05-28 23:19:31 +02:00
2025-01-31 20:24:05 +01:00
2025-05-28 23:19:31 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-10-10 17:51:02 +02:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-10-10 17:51:02 +02:00
2025-01-31 20:24:05 +01:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-05-28 23:19:31 +02:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-05-28 23:19:31 +02:00
2024-12-12 15:09:03 +01:00
2024-12-12 15:09:03 +01:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2025-05-20 23:12:13 +02:00
2025-06-23 11:40:00 +02:00
2024-12-12 15:09:03 +01:00
2025-05-28 23:19:31 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-10-10 17:51:02 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-06-23 11:40:00 +02:00
2025-05-28 23:19:31 +02:00
2025-06-23 11:40:00 +02:00