Skip to content

Commit 5c0220e

Browse files
committed
Fix up build issues
1 parent 2153355 commit 5c0220e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sandbox/PerfBenchmarkDotNet/MessagePackWriterBenchmark.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
extern alias newmsgpack;
55
extern alias oldmsgpack;
66

7+
using System;
78
using BenchmarkDotNet.Attributes;
89
using BenchmarkDotNet.Configs;
910
using Nerdbank.Streams;
@@ -12,7 +13,7 @@ namespace PerfBenchmarkDotNet
1213
{
1314
[GroupBenchmarksBy(BenchmarkLogicalGroupRule.ByCategory)]
1415
[CategoriesColumn]
15-
public class MessagePackWriterBenchmark
16+
public sealed class MessagePackWriterBenchmark : IDisposable
1617
{
1718
private const int RepsOverArray = 300 * 1024;
1819
private readonly Sequence<byte> sequence = new Sequence<byte>();
@@ -148,5 +149,10 @@ public void WriteString()
148149
offset = 0;
149150
}
150151
}
152+
153+
public void Dispose()
154+
{
155+
this.sequence.Dispose();
156+
}
151157
}
152158
}

0 commit comments

Comments
 (0)