Add PVS benchmark (#23166)

* Add PVS benchmark

* poke tests

* Shuffle players around

* Add caveat

* Add CycleTick() benchmark

* Make async false

* Oops
This commit is contained in:
Leon Friedrich
2024-01-03 19:58:38 -05:00
committed by GitHub
parent 7c22a1cc59
commit 354eed4a8b
3 changed files with 188 additions and 8 deletions

View File

@@ -23,13 +23,6 @@ namespace Content.Benchmarks
public static async Task MainAsync(string[] args)
{
PoolManager.Startup(typeof(Program).Assembly);
var pair = await PoolManager.GetServerClient();
var gameMaps = pair.Server.ResolveDependency<IPrototypeManager>().EnumeratePrototypes<GameMapPrototype>().ToList();
MapLoadBenchmark.MapsSource = gameMaps.Select(x => x.ID);
await pair.CleanReturnAsync();
PoolManager.Shutdown();
#if DEBUG
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("\nWARNING: YOU ARE RUNNING A DEBUG BUILD, USE A RELEASE BUILD FOR AN ACCURATE BENCHMARK");