Skip to content

Benchmark: Dispose benchmark MemoryStreams to reduce GC noise #33

@jozefizso

Description

@jozefizso

Current: Benchmarks allocate MemoryStream per iteration (CompileVbaProjectBenchmark output, CompileMacroBenchmark macro stream) without cleanup, increasing GC pressure across iterations.
Proposed: Track the streams as fields and dispose them in [IterationCleanup], or return byte[]/length instead. Keep MemoryDiagnoser on to verify reduced allocation/GC noise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions