mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
25 lines
518 B
C#
25 lines
518 B
C#
using System.Diagnostics;
|
|
using BenchmarkDotNet.Running;
|
|
using BepInEx;
|
|
using BepInEx.Unity.IL2CPP;
|
|
|
|
namespace Reactor.Benchmarks;
|
|
|
|
[BepInAutoPlugin("gg.reactor.benchmarks")]
|
|
[BepInProcess("Among Us.exe")]
|
|
[BepInDependency(ReactorPlugin.Id)]
|
|
public partial class BenchmarksPlugin : BasePlugin
|
|
{
|
|
public override void Load()
|
|
{
|
|
try
|
|
{
|
|
BenchmarkRunner.Run<AssetBundleBenchmarks>();
|
|
}
|
|
finally
|
|
{
|
|
Process.GetCurrentProcess().Kill();
|
|
}
|
|
}
|
|
}
|