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

Add parallel/multi-threaded example #103

Closed saul closed 2 months ago

saul commented 2 months ago

Closes #99

github-actions[bot] commented 2 months ago

BenchmarkDotNet v0.13.9+228a464e8be6c580ad9408e98f18813f6407fb5a, Ubuntu 22.04.5 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-QBRMIG : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2
  Job-WKXGPI : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2

InvocationCount=1  MaxIterationCount=16  UnrollFactor=1  
WarmupCount=1  
Method Job BuildConfiguration Mean Error StdDev Ratio RatioSD Gen0 Gen1 Allocated Alloc Ratio
ParseDemo Job-QBRMIG Baseline 2.274 s 0.0120 s 0.0100 s 1.00 0.00 5000.0000 1000.0000 516 MB 1.00
ParseDemo Job-WKXGPI Default 2.235 s 0.0092 s 0.0077 s 0.98 0.01 5000.0000 1000.0000 516 MB 1.00
ParseDemoParallel Job-QBRMIG Baseline 1.196 s 0.0230 s 0.0204 s 1.00 0.00 6000.0000 1000.0000 558.49 MB 1.00
ParseDemoParallel Job-WKXGPI Default 1.208 s 0.0261 s 0.0232 s 1.01 0.02 6000.0000 1000.0000 558.49 MB 1.00