A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using BenchmarkDotNet.Attributes;
5using BenchmarkDotNet.Running;
6using NUnit.Framework;
7
8namespace osu.Framework.Benchmarks
9{
10 [TestFixture]
11 [MemoryDiagnoser]
12 public abstract class BenchmarkTest
13 {
14 [GlobalSetup]
15 [OneTimeSetUp]
16 public virtual void SetUp()
17 {
18 }
19
20 [Test]
21 public void RunBenchmark() => BenchmarkRunner.Run(GetType());
22 }
23}