Skip to content
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

Add ReadAllParallelAsync (multi-threaded parsing) #52

Merged
merged 10 commits into from
Sep 7, 2024
Merged

Conversation

saul
Copy link
Owner

@saul saul commented Mar 17, 2024

Thanks @in0finite for the initial implementation. This is largely based off the ideas from #51

Closes #48
Closes #51

@saul saul changed the title Add ReadAllParallelAsync (multi-threaded parsing) [WIP] Add ReadAllParallelAsync (multi-threaded parsing) Mar 17, 2024
@saul saul mentioned this pull request Mar 17, 2024
@saul saul changed the title [WIP] Add ReadAllParallelAsync (multi-threaded parsing) Add ReadAllParallelAsync (multi-threaded parsing) Sep 7, 2024
Copy link

github-actions bot commented Sep 7, 2024


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-UFPXIW : .NET 8.0.8 (8.0.824.36612), X64 RyuJIT AVX2
  Job-EDVGXU : .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-UFPXIW /p:Baseline=true NA NA NA ? ? NA NA NA ?
ParseDemo Job-EDVGXU Default 2.209 s 0.0179 s 0.0149 s ? ? 6000.0000 2000.0000 579.02 MB ?
ParseDemoParallel Job-UFPXIW /p:Baseline=true NA NA NA ? ? NA NA NA ?
ParseDemoParallel Job-EDVGXU Default 1.182 s 0.0228 s 0.0190 s ? ? 6000.0000 1000.0000 627.36 MB ?

Benchmarks with issues:
DemoParserBenchmark.ParseDemo: Job-UFPXIW(Arguments=/p:Baseline=true, InvocationCount=1, MaxIterationCount=16, UnrollFactor=1, WarmupCount=1)
DemoParserBenchmark.ParseDemoParallel: Job-UFPXIW(Arguments=/p:Baseline=true, InvocationCount=1, MaxIterationCount=16, UnrollFactor=1, WarmupCount=1)

@saul saul merged commit 7d31211 into main Sep 7, 2024
2 checks passed
@saul saul deleted the parallel-parse branch September 7, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-threaded parsing
2 participants