mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 17:17:26 +08:00
24 lines
555 B
C#
24 lines
555 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using BenchmarkDotNet.Attributes;
|
|
using BenchmarkDotNet.Running;
|
|
using NUnit.Framework;
|
|
|
|
namespace osu.Game.Benchmarks
|
|
{
|
|
[TestFixture]
|
|
[MemoryDiagnoser]
|
|
public abstract class BenchmarkTest
|
|
{
|
|
[GlobalSetup]
|
|
[OneTimeSetUp]
|
|
public virtual void SetUp()
|
|
{
|
|
}
|
|
|
|
[Test]
|
|
public void RunBenchmark() => BenchmarkRunner.Run(GetType());
|
|
}
|
|
}
|