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

17 lines
442 B
C#
Raw Normal View History

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