File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
sandbox/PerfBenchmarkDotNet Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 4
4
extern alias newmsgpack ;
5
5
extern alias oldmsgpack ;
6
6
7
+ using System ;
7
8
using BenchmarkDotNet . Attributes ;
8
9
using BenchmarkDotNet . Configs ;
9
10
using Nerdbank . Streams ;
@@ -12,7 +13,7 @@ namespace PerfBenchmarkDotNet
12
13
{
13
14
[ GroupBenchmarksBy ( BenchmarkLogicalGroupRule . ByCategory ) ]
14
15
[ CategoriesColumn ]
15
- public class MessagePackWriterBenchmark
16
+ public sealed class MessagePackWriterBenchmark : IDisposable
16
17
{
17
18
private const int RepsOverArray = 300 * 1024 ;
18
19
private readonly Sequence < byte > sequence = new Sequence < byte > ( ) ;
@@ -148,5 +149,10 @@ public void WriteString()
148
149
offset = 0 ;
149
150
}
150
151
}
152
+
153
+ public void Dispose ( )
154
+ {
155
+ this . sequence . Dispose ( ) ;
156
+ }
151
157
}
152
158
}
You can’t perform that action at this time.
0 commit comments