Skip to content

Instantly share code, notes, and snippets.

@sozercan
Created April 4, 2024 18:24
Show Gist options
  • Save sozercan/c6fcf00c37b7ee703b8bd0e51b083e46 to your computer and use it in GitHub Desktop.
Save sozercan/c6fcf00c37b7ee703b8bd0e51b083e46 to your computer and use it in GitHub Desktop.
Gatekeeper linux/amd64/v1 vs linux/amd64/v3
goos: linux
goarch: amd64
pkg: github.com/open-policy-agent/gatekeeper/v3/pkg/mutation
cpu: AMD EPYC 7763 64-Core Processor
│ old2.txt │ new2.txt │
│ sec/op │ sec/op vs base │
System_Mutate-8 925.8n ± 0% 935.2n ± 0% +1.02% (p=0.000 n=20)
pkg: github.com/open-policy-agent/gatekeeper/v3/pkg/mutation/mutators/assign
│ old2.txt │ new2.txt │
│ sec/op │ sec/op vs base │
AssignMutator_Mutate/always_mutate_1-depth-8 116.0n ± 0% 118.9n ± 0% +2.46% (p=0.000 n=20)
AssignMutator_Mutate/always_mutate_2-depth-8 138.0n ± 0% 144.2n ± 1% +4.49% (p=0.000 n=20)
AssignMutator_Mutate/always_mutate_5-depth-8 198.4n ± 0% 204.5n ± 0% +3.10% (p=0.000 n=20)
AssignMutator_Mutate/always_mutate_10-depth-8 301.1n ± 0% 309.0n ± 1% +2.62% (p=0.000 n=20)
AssignMutator_Mutate/always_mutate_20-depth-8 514.1n ± 1% 524.9n ± 0% +2.09% (p=0.000 n=20)
AssignMutator_Mutate/never_mutate_1-depth-8 100.3n ± 0% 101.5n ± 0% +1.30% (p=0.000 n=20)
AssignMutator_Mutate/never_mutate_2-depth-8 115.5n ± 0% 124.4n ± 1% +7.66% (p=0.000 n=20)
AssignMutator_Mutate/never_mutate_5-depth-8 164.5n ± 0% 175.2n ± 0% +6.47% (p=0.000 n=20)
AssignMutator_Mutate/never_mutate_10-depth-8 253.2n ± 0% 265.2n ± 0% +4.76% (p=0.000 n=20)
AssignMutator_Mutate/never_mutate_20-depth-8 411.5n ± 0% 434.1n ± 0% +5.52% (p=0.000 n=20)
geomean 199.0n 207.1n +4.03%
pkg: github.com/open-policy-agent/gatekeeper/v3/pkg/mutation/mutators/assignimage
│ old2.txt │ new2.txt │
│ sec/op │ sec/op vs base │
AssignImageMutator_Mutate/always_mutate_1-depth-8 313.8n ± 1% 312.6n ± 0% -0.38% (p=0.001 n=20)
AssignImageMutator_Mutate/always_mutate_2-depth-8 332.9n ± 0% 332.2n ± 0% ~ (p=0.304 n=20)
AssignImageMutator_Mutate/always_mutate_5-depth-8 392.1n ± 0% 392.4n ± 0% ~ (p=0.560 n=20)
AssignImageMutator_Mutate/always_mutate_10-depth-8 498.7n ± 0% 499.9n ± 0% +0.23% (p=0.000 n=20)
AssignImageMutator_Mutate/always_mutate_20-depth-8 743.1n ± 1% 743.0n ± 1% ~ (p=0.888 n=20)
AssignImageMutator_Mutate/never_mutate_1-depth-8 117.9n ± 0% 108.9n ± 0% -7.63% (p=0.000 n=20)
AssignImageMutator_Mutate/never_mutate_2-depth-8 133.4n ± 1% 124.9n ± 0% -6.37% (p=0.000 n=20)
AssignImageMutator_Mutate/never_mutate_5-depth-8 172.9n ± 0% 176.6n ± 0% +2.14% (p=0.000 n=20)
AssignImageMutator_Mutate/never_mutate_10-depth-8 259.9n ± 0% 269.7n ± 0% +3.75% (p=0.000 n=20)
AssignImageMutator_Mutate/never_mutate_20-depth-8 408.2n ± 0% 439.4n ± 0% +7.64% (p=0.000 n=20)
geomean 291.2n 290.7n -0.17%
pkg: github.com/open-policy-agent/gatekeeper/v3/pkg/mutation/mutators/assignmeta
│ old2.txt │ new2.txt │
│ sec/op │ sec/op vs base │
AssignMetadataMutator_Always-8 592.3n ± 0% 592.9n ± 0% ~ (p=0.379 n=20)
AssignMetadataMutator_Never-8 147.7n ± 0% 149.0n ± 0% +0.95% (p=0.000 n=20)
geomean 295.7n 297.3n +0.53%
pkg: github.com/open-policy-agent/gatekeeper/v3/pkg/mutation/mutators/modifyset
│ old2.txt │ new2.txt │
│ sec/op │ sec/op vs base │
ModifySetMutator_Mutate/always_mutate_1-depth-8 644.5n ± 0% 637.1n ± 0% -1.16% (p=0.000 n=20)
ModifySetMutator_Mutate/always_mutate_2-depth-8 667.0n ± 0% 659.8n ± 0% -1.09% (p=0.000 n=20)
ModifySetMutator_Mutate/always_mutate_5-depth-8 735.3n ± 0% 724.6n ± 0% -1.45% (p=0.000 n=20)
ModifySetMutator_Mutate/always_mutate_10-depth-8 850.3n ± 0% 833.9n ± 0% -1.93% (p=0.000 n=20)
ModifySetMutator_Mutate/always_mutate_20-depth-8 1.110µ ± 0% 1.110µ ± 0% ~ (p=0.541 n=20)
ModifySetMutator_Mutate/never_mutate_1-depth-8 177.7n ± 0% 171.9n ± 0% -3.26% (p=0.000 n=20)
ModifySetMutator_Mutate/never_mutate_2-depth-8 192.8n ± 0% 190.1n ± 0% -1.37% (p=0.000 n=20)
ModifySetMutator_Mutate/never_mutate_5-depth-8 241.1n ± 0% 240.0n ± 0% -0.46% (p=0.000 n=20)
ModifySetMutator_Mutate/never_mutate_10-depth-8 330.7n ± 0% 329.4n ± 0% -0.36% (p=0.000 n=20)
ModifySetMutator_Mutate/never_mutate_20-depth-8 489.4n ± 0% 487.5n ± 0% -0.39% (p=0.000 n=20)
geomean 457.2n 451.9n -1.15%
pkg: github.com/open-policy-agent/gatekeeper/v3/pkg/webhook
│ old2.txt │ new2.txt │
│ sec/op │ sec/op vs base │
ValidationHandler/psp:_100%_violations-8 1.082m ± 1% 1.081m ± 1% ~ (p=0.583 n=20)
ValidationHandler/psp:_100%_violations#01-8 1.366m ± 0% 1.358m ± 1% -0.59% (p=0.038 n=20)
ValidationHandler/psp:_100%_violations#02-8 3.279m ± 0% 3.250m ± 0% -0.87% (p=0.000 n=20)
ValidationHandler/psp:_100%_violations#03-8 5.567m ± 0% 5.548m ± 0% -0.34% (p=0.001 n=20)
ValidationHandler/psp:_100%_violations#04-8 10.16m ± 0% 10.04m ± 1% -1.20% (p=0.000 n=20)
ValidationHandler/psp:_100%_violations#05-8 46.56m ± 0% 46.68m ± 1% +0.25% (p=0.038 n=20)
ValidationHandler/psp:_100%_violations#06-8 93.13m ± 1% 96.76m ± 2% +3.90% (p=0.000 n=20)
geomean 7.377m 7.387m +0.14%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment