MatrixBenchmarks.cs 405 B

12345678910111213141516
  1. using BenchmarkDotNet.Attributes;
  2. namespace Avalonia.Benchmarks.Visuals
  3. {
  4. [MemoryDiagnoser, InProcess]
  5. public class MatrixBenchmarks
  6. {
  7. private static readonly Matrix s_data = Matrix.Identity;
  8. [Benchmark(Baseline = true)]
  9. public bool Decompose()
  10. {
  11. return Matrix.TryDecomposeTransform(s_data, out Matrix.Decomposed decomposed);
  12. }
  13. }
  14. }