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

24 lines
549 B
C#
Raw Normal View History

using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Jobs;
namespace Claunia.PropertyList.Benchmark
{
[SimpleJob(RuntimeMoniker.NetCoreApp50)]
[MemoryDiagnoser]
public class BinaryPropertyListWriterBenchmarks
{
2018-07-09 19:57:08 +01:00
NSObject data;
[GlobalSetup]
public void Setup()
{
data = PropertyListParser.Parse("plist.bin");
}
[Benchmark]
public byte[] WriteLargePropertylistTest()
{
return BinaryPropertyListWriter.WriteToArray(data);
}
}
2018-07-09 19:57:08 +01:00
}