Skip to content

Commit

Permalink
Merge pull request #1 from abichinger/develop
Browse files Browse the repository at this point in the history
fix: BasicAdapterTest
  • Loading branch information
abichinger authored May 2, 2022
2 parents 5e8e03a + 319a50d commit 4d1172c
Show file tree
Hide file tree
Showing 12 changed files with 130 additions and 147 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ benchmark:
go test -benchmem -bench=. | tee bench/benchmark.txt

draw_benchmarks:
$(GOBIN)/benchdraw --filter="BenchmarkRBAC" --title="RBAC-Benchmark" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/RBAC_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkRBAC" --title="RBAC-Benchmark Alloc" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/RBAC_alloc.svg
$(GOBIN)/benchdraw --filter="BenchmarkRBAC" --title="Enforce RBAC" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/RBAC_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkRBAC" --title="Enforce RBAC Alloc" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/RBAC_alloc.svg

$(GOBIN)/benchdraw --filter="BenchmarkABAC" --title="ABAC-Benchmark" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/ABAC_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkABAC" --title="ABAC-Benchmark Alloc" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/ABAC_alloc.svg
$(GOBIN)/benchdraw --filter="BenchmarkABAC" --title="Enforce ABAC" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/ABAC_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkABAC" --title="Enforce ABAC Alloc" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/ABAC_alloc.svg

$(GOBIN)/benchdraw --filter="BenchmarkAddPolicy" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/AddPolicy_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkAddPolicy" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/AddPolicy_alloc.svg
$(GOBIN)/benchdraw --filter="BenchmarkAddPolicy" --title="Add Rule" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/AddPolicy_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkAddPolicy" --title="Add Rule Alloc" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/AddPolicy_alloc.svg

$(GOBIN)/benchdraw --filter="BenchmarkRemovePolicy" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/RemovePolicy_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkRemovePolicy" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/RemovePolicy_alloc.svg
$(GOBIN)/benchdraw --filter="BenchmarkRemovePolicy" --title="Remove Rule" --x=size --group=enforcer < ./bench/benchmark.txt > ./bench/RemovePolicy_op.svg
$(GOBIN)/benchdraw --filter="BenchmarkRemovePolicy" --title="Remove Rule Alloc" --x=size --group=enforcer --y=allocs/op < ./bench/benchmark.txt > ./bench/RemovePolicy_alloc.svg

$(GOBIN)/benchdraw --filter="BenchmarkPathMatch" --title="Matching Function" --x=name --group=pkg < ./bench/benchmark.txt > ./bench/PathMatch_op.svg
6 changes: 3 additions & 3 deletions bench/ABAC_alloc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 20 additions & 20 deletions bench/ABAC_op.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions bench/AddPolicy_alloc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 20 additions & 20 deletions bench/AddPolicy_op.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 9 additions & 23 deletions bench/PathMatch_op.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions bench/RBAC_alloc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4d1172c

Please sign in to comment.