diff --git a/tests/Avalonia.Benchmarks/Styling/ControlTheme_Apply.cs b/tests/Avalonia.Benchmarks/Styling/ControlTheme_Apply.cs new file mode 100644 index 0000000000..0c9bcf412f --- /dev/null +++ b/tests/Avalonia.Benchmarks/Styling/ControlTheme_Apply.cs @@ -0,0 +1,147 @@ +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using Avalonia.Controls; +using Avalonia.Controls.Primitives; +using Avalonia.Controls.Templates; +using Avalonia.Media; +using Avalonia.Styling; +using BenchmarkDotNet.Attributes; + +#nullable enable + +namespace Avalonia.Benchmarks.Styling +{ + [MemoryDiagnoser] + public class ControlTheme_Apply + { + private ControlTheme _theme; + private ControlTheme _otherTheme; + private List