From 992ced0c9cb675d74366b1c4935e0b0b64b6c893 Mon Sep 17 00:00:00 2001 From: Dariusz Komosinski Date: Tue, 11 Feb 2020 23:05:56 +0100 Subject: [PATCH] Cleanup code. --- tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs b/tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs index 8739e21486..c55912d94d 100644 --- a/tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs +++ b/tests/Avalonia.Benchmarks/Layout/CalendarBenchmark.cs @@ -6,19 +6,22 @@ using BenchmarkDotNet.Attributes; namespace Avalonia.Benchmarks.Layout { - [MemoryDiagnoser, InProcess, IterationCount(16)] + [MemoryDiagnoser] public class CalendarBenchmark : IDisposable { private readonly IDisposable _app; private readonly TestRoot _root; - + public CalendarBenchmark() { - _app = UnitTestApplication.Start(TestServices.StyledWindow.With(renderInterface: new NullRenderingPlatform(), threadingInterface: new NullThreadingPlatform())); + _app = UnitTestApplication.Start( + TestServices.StyledWindow.With( + renderInterface: new NullRenderingPlatform(), + threadingInterface: new NullThreadingPlatform())); _root = new TestRoot(true, null) { - Renderer = new NullRenderer(), + Renderer = new NullRenderer() }; _root.LayoutManager.ExecuteInitialLayoutPass(_root);