Update component query benchmarks (#27967)

* Add more component query benchmarks.

* Rename benchmark
This commit is contained in:
Leon Friedrich
2024-05-19 13:55:10 +12:00
committed by GitHub
parent b4a5399ad4
commit 6e83c4d570
10 changed files with 300 additions and 157 deletions

View File

@@ -15,11 +15,8 @@ public static partial class PoolManager
| BindingFlags.Public
| BindingFlags.DeclaredOnly;
private static void DiscoverTestPrototypes(Assembly? assembly = null)
private static void DiscoverTestPrototypes(Assembly assembly)
{
assembly ??= typeof(PoolManager).Assembly;
_testPrototypes.Clear();
foreach (var type in assembly.GetTypes())
{
foreach (var field in type.GetFields(Flags))