Skip to content

Commit

Permalink
Fix up build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Nov 3, 2021
1 parent 2153355 commit 5c0220e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sandbox/PerfBenchmarkDotNet/MessagePackWriterBenchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
extern alias newmsgpack;
extern alias oldmsgpack;

using System;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Configs;
using Nerdbank.Streams;
Expand All @@ -12,7 +13,7 @@ namespace PerfBenchmarkDotNet
{
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
[CategoriesColumn]
public class MessagePackWriterBenchmark
public sealed class MessagePackWriterBenchmark : IDisposable
{
private const int RepsOverArray = 300 * 1024;
private readonly Sequence<byte> sequence = new Sequence<byte>();
Expand Down Expand Up @@ -148,5 +149,10 @@ public void WriteString()
offset = 0;
}
}

public void Dispose()
{
this.sequence.Dispose();
}
}
}

0 comments on commit 5c0220e

Please sign in to comment.