cloudflare / pint

Prometheus rule linter/validator
https://cloudflare.github.io/pint/
Apache License 2.0
880 stars 53 forks source link

Limit how long we can check other servers #1138

Closed prymitive closed 1 month ago

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 95.21%. Comparing base (87bfd23) to head (740164c).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1138 +/- ## ========================================== + Coverage 95.16% 95.21% +0.05% ========================================== Files 102 102 Lines 10236 10271 +35 ========================================== + Hits 9741 9780 +39 + Misses 346 344 -2 + Partials 149 147 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 1 month ago

Benchmark diff:

goos: linux
goarch: amd64
pkg: github.com/cloudflare/pint/cmd/pint
cpu: AMD EPYC 7763 64-Core Processor                
              │   old.txt   │              new.txt               │
              │   sec/op    │   sec/op     vs base               │
FindEntries-4   40.43m ± 2%   40.40m ± 2%       ~ (p=0.912 n=10)
CheckRules-4     8.493 ± 2%    8.519 ± 2%       ~ (p=0.393 n=10)
geomean         586.0m        586.7m       +0.11%

              │   old.txt    │               new.txt               │
              │     B/op     │     B/op      vs base               │
FindEntries-4   27.41Mi ± 0%   27.41Mi ± 0%       ~ (p=0.853 n=10)
CheckRules-4    978.1Mi ± 0%   977.5Mi ± 0%       ~ (p=0.247 n=10)
geomean         163.7Mi        163.7Mi       -0.03%

              │   old.txt   │              new.txt               │
              │  allocs/op  │  allocs/op   vs base               │
FindEntries-4   131.9k ± 0%   131.9k ± 0%       ~ (p=0.668 n=10)
CheckRules-4    14.20M ± 0%   14.19M ± 0%  -0.08% (p=0.000 n=10)
geomean         1.368M        1.368M       -0.04%