jeme commented on issue #933:
URL: https://github.com/apache/lucenenet/issues/933#issuecomment-2016546496

   This might actually be reproduceable outside of Lucene.NET, so it might be 
something we need to workaround or bring to Microsoft. Findings on writing and 
flushing small buffers to FileStreams:
   
   ```
   BenchmarkDotNet v0.13.12, Windows 10 (10.0.19045.3930/22H2/2022Update)
   Intel Core i9-7900X CPU 3.30GHz (Kaby Lake), 1 CPU, 20 logical and 10 
physical cores
   .NET SDK 8.0.202
     [Host]   : .NET 6.0.28 (6.0.2824.12007), X64 RyuJIT AVX2
     .NET 7.0 : .NET 7.0.17 (7.0.1724.11508), X64 RyuJIT AVX2
     .NET 8.0 : .NET 8.0.3 (8.0.324.11423), X64 RyuJIT AVX-512F+CD+BW+DQ+VL
   
   Server=True
   
   | Method   | Job      | Runtime  | Mean      | Error     | StdDev    | 
Median    | Ratio | RatioSD |
   |--------- |--------- |--------- 
|----------:|----------:|----------:|----------:|------:|--------:|
   | Write1Kb | .NET 7.0 | .NET 7.0 |  48.99 us |  0.715 us |  0.597 us |  
48.81 us |  1.00 |    0.00 |
   | Write1Kb | .NET 8.0 | .NET 8.0 | 621.17 us |  8.588 us |  7.613 us | 
618.31 us | 12.68 |    0.20 |
   |          |          |          |           |           |           |       
    |       |         |
   | Write2Kb | .NET 7.0 | .NET 7.0 |  49.37 us |  0.978 us |  1.763 us |  
49.32 us |  1.00 |    0.00 |
   | Write2Kb | .NET 8.0 | .NET 8.0 | 603.85 us | 11.839 us | 23.090 us | 
592.75 us | 12.29 |    0.81 |
   |          |          |          |           |           |           |       
    |       |         |
   | Write4Kb | .NET 7.0 | .NET 7.0 |  50.58 us |  1.000 us |  2.416 us |  
49.63 us |  1.00 |    0.00 |
   | Write4Kb | .NET 8.0 | .NET 8.0 | 610.63 us | 12.062 us | 12.906 us | 
611.66 us | 11.53 |    0.67 |
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to