-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regressions in System.IO.Compression.Brotli #73391
Comments
Tagging subscribers to this area: @dotnet/area-system-io-compression Issue DetailsRun Information
Regressions in System.IO.Compression.Brotli
Reprogit clone https://github.com/dotnet/performance.git
py .\performance\scripts\benchmarks_ci.py -f net6.0 --filter 'System.IO.Compression.Brotli*' PayloadsHistogramSystem.IO.Compression.Brotli.Compress(level: Optimal, file: "alice29.txt")
Description of detection logic
Description of detection logic
DocsProfiling workflow for dotnet/runtime repository
|
This is a perf test bug. The test is assuming that all work associated with a write happens during the write: With the test as is, when I run it locally I get similarly terrible-looking results:
But, when I fix the test, by changing: var compressor = CreateStream(CompressedFile.CompressedDataStream, level); to instead be: using var compressor = CreateStream(CompressedFile.CompressedDataStream, level); public override Stream CreateStream(Stream stream, CompressionLevel level) => new BrotliStream(stream, level); to instead be: public override Stream CreateStream(Stream stream, CompressionLevel level) => new BrotliStream(stream, level, leaveOpen: true); I then get these results:
which is way more in line with the expected result of my PR. |
As seen here, dotnet/runtime#73391 (comment), this test had a bug where in the work that was being done by the underlying test was not being correctly measured. This fix resolves that.
Run Information
Regressions in System.IO.Compression.Brotli
Test Report
Repro
Payloads
Baseline
Compare
Histogram
System.IO.Compression.Brotli.Compress(level: Optimal, file: "alice29.txt")
Description of detection logic
Description of detection logic
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository
The text was updated successfully, but these errors were encountered: