saul / demofile-net

Blazing fast cross-platform demo parser library for Counter-Strike 2 and Valve's Deadlock, written in C#.
MIT License
111 stars 10 forks source link

Reduce allocations for compressed packets #90

Closed saul closed 2 months ago

github-actions[bot] commented 2 months ago

BenchmarkDotNet v0.13.9+228a464e8be6c580ad9408e98f18813f6407fb5a, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.401
  [Host]     : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2
  Job-RJGNRJ : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2
  Job-MGSDAU : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2

InvocationCount=1  MaxIterationCount=16  UnrollFactor=1  
WarmupCount=1  
Method Job Arguments Mean Error StdDev Ratio RatioSD Gen0 Gen1 Allocated Alloc Ratio
ParseDemo Job-RJGNRJ /p:Baseline=true 2.180 s 0.0139 s 0.0116 s 1.00 0.00 6000.0000 2000.0000 579.02 MB 1.00
ParseDemo Job-MGSDAU Default 2.226 s 0.0161 s 0.0143 s 1.02 0.01 5000.0000 2000.0000 515.8 MB 0.89
ParseDemoParallel Job-RJGNRJ /p:Baseline=true 1.184 s 0.0229 s 0.0191 s 1.00 0.00 6000.0000 1000.0000 627.36 MB 1.00
ParseDemoParallel Job-MGSDAU Default 1.158 s 0.0258 s 0.0229 s 0.98 0.02 6000.0000 1000.0000 557.68 MB 0.89