Skip to content

[C#] Add BenchmarkDotNet benchmarks comparable to mem-rs criterion benches #112

Backlog

Description

@konard

Problem

mem-rs has criterion benchmarks (sync vs async, backends). C# has none, so modernisations (NativeMemory, RandomAccess, sparse growth, Span API) cannot be measured.

Proposed solution

Add a Platform.Memory.Benchmarks project with BenchmarkDotNet:

  • grow by N, random read/write, sequential write, reopen, FileArrayMemory vs mapped, heap vs NativeMemory;
  • the same scenarios as mem-rs benches/, so results are comparable.

Run them in CI on demand (workflow_dispatch) and publish the results as an artifact.


Part of #94 (catch up with mem-rs). Analysis and evidence: case study.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    csharpenhancementmem-rs-paritytests

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions