Files
plist-cil/plist-cil.benchmark/BinaryPropertyListWriterBenchmarks.cs

26 lines
546 B
C#
Raw Normal View History

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Jobs;
namespace Claunia.PropertyList.Benchmark
{
[CoreJob]
[MemoryDiagnoser]
public class BinaryPropertyListWriterBenchmarks
{
private NSObject data = null;
[GlobalSetup]
public void Setup()
{
data = PropertyListParser.Parse("plist.bin");
}
[Benchmark]
public byte[] WriteLargePropertylistTest()
{
return BinaryPropertyListWriter.WriteToArray(data);
}
}
}