Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhancement: Apply perf patch to YAML parser
Update our fork with the performance patch from goccy/go-yaml#438. ``` goos: linux goarch: amd64 pkg: github.com/cerbos/cerbos/internal/parser cpu: 13th Gen Intel(R) Core(TM) i7-1360P │ parser_before.txt │ parser_after.txt │ │ sec/op │ sec/op vs base │ Unmarshal/10-16 3399.0µ ± 3% 847.2µ ± 4% -75.08% (p=0.000 n=10) Unmarshal/50-16 50.093m ± 7% 3.847m ± 2% -92.32% (p=0.000 n=10) Unmarshal/100-16 191.559m ± 6% 7.504m ± 3% -96.08% (p=0.000 n=10) Unmarshal/500-16 4674.56m ± 3% 35.09m ± 4% -99.25% (p=0.000 n=10) geomean 111.1m 5.412m -95.13% │ parser_before.txt │ parser_after.txt │ │ B/s │ B/s vs base │ Unmarshal/10-16 1.030Mi ± 3% 4.134Mi ± 4% +301.39% (p=0.000 n=10) Unmarshal/50-16 341.8Ki ± 6% 4423.8Ki ± 2% +1194.29% (p=0.000 n=10) Unmarshal/100-16 175.8Ki ± 6% 4506.8Ki ± 3% +2463.89% (p=0.000 n=10) Unmarshal/500-16 39.06Ki ± 0% 4794.92Ki ± 4% +12175.00% (p=0.000 n=10) geomean 223.1Ki 4.380Mi +1910.85% │ parser_before.txt │ parser_after.txt │ │ B/op │ B/op vs base │ Unmarshal/10-16 4258.8Ki ± 0% 384.6Ki ± 0% -90.97% (p=0.000 n=10) Unmarshal/50-16 91.248Mi ± 0% 1.813Mi ± 0% -98.01% (p=0.000 n=10) Unmarshal/100-16 358.297Mi ± 0% 3.596Mi ± 0% -99.00% (p=0.000 n=10) Unmarshal/500-16 7944.51Mi ± 0% 18.98Mi ± 0% -99.76% (p=0.000 n=10) geomean 181.3Mi 2.611Mi -98.56% │ parser_before.txt │ parser_after.txt │ │ allocs/op │ allocs/op vs base │ Unmarshal/10-16 10.595k ± 0% 8.978k ± 0% -15.26% (p=0.000 n=10) Unmarshal/50-16 50.64k ± 0% 42.93k ± 0% -15.23% (p=0.000 n=10) Unmarshal/100-16 100.83k ± 0% 85.38k ± 0% -15.32% (p=0.000 n=10) Unmarshal/500-16 505.9k ± 0% 425.6k ± 0% -15.87% (p=0.000 n=10) geomean 72.33k 61.17k -15.42% ``` Signed-off-by: Charith Ellawala <[email protected]>
- Loading branch information