Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -12,7 +12,7 @@ using SysVector4 = System.Numerics.Vector4;
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
[DisassemblyDiagnoser]
|
||||
public class ColorInterpolateBenchmark
|
||||
public sealed class ColorInterpolateBenchmark
|
||||
{
|
||||
#if NETCOREAPP
|
||||
private const MethodImplOptions AggressiveOpt = MethodImplOptions.AggressiveOptimization;
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.Utility;
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
[SimpleJob]
|
||||
public class ComponentFetchBenchmark
|
||||
public sealed class ComponentFetchBenchmark
|
||||
{
|
||||
[Params(5000)] public int NEnt { get; set; }
|
||||
|
||||
@@ -218,39 +218,39 @@ namespace Content.Benchmarks
|
||||
public EntityUid Uid;
|
||||
}
|
||||
|
||||
private class BComponent1 : BComponent
|
||||
private sealed class BComponent1 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent2 : BComponent
|
||||
private sealed class BComponent2 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent3 : BComponent
|
||||
private sealed class BComponent3 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent4 : BComponent
|
||||
private sealed class BComponent4 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponentLookup : BComponent
|
||||
private sealed class BComponentLookup : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent6 : BComponent
|
||||
private sealed class BComponent6 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent7 : BComponent
|
||||
private sealed class BComponent7 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent8 : BComponent
|
||||
private sealed class BComponent8 : BComponent
|
||||
{
|
||||
}
|
||||
|
||||
private class BComponent9 : BComponent
|
||||
private sealed class BComponent9 : BComponent
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Content.Benchmarks
|
||||
{
|
||||
// To actually run this benchmark you'll have to make DependencyCollection public so it's accessible.
|
||||
|
||||
public class DependencyInjectBenchmark
|
||||
public sealed class DependencyInjectBenchmark
|
||||
{
|
||||
[Params(InjectMode.Reflection, InjectMode.DynamicMethod)]
|
||||
public InjectMode Mode { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.Physics;
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
[SimpleJob, MemoryDiagnoser]
|
||||
public class DynamicTreeBenchmark
|
||||
public sealed class DynamicTreeBenchmark
|
||||
{
|
||||
private static readonly Box2[] _aabbs1 =
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.Utility;
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
[SimpleJob]
|
||||
public class EntityFetchBenchmark
|
||||
public sealed class EntityFetchBenchmark
|
||||
{
|
||||
[Params(1000)] public int N { get; set; }
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ using Robust.Shared.Reflection;
|
||||
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
public class EntityManagerGetAllComponents
|
||||
public sealed class EntityManagerGetAllComponents
|
||||
{
|
||||
private IEntityManager _entityManager;
|
||||
|
||||
@@ -87,7 +87,7 @@ namespace Content.Benchmarks
|
||||
return count;
|
||||
}
|
||||
|
||||
private class DummyComponent : Component
|
||||
private sealed class DummyComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ using BenchmarkDotNet.Attributes;
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
[SimpleJob]
|
||||
public class NetSerializerIntBenchmark
|
||||
public sealed class NetSerializerIntBenchmark
|
||||
{
|
||||
private MemoryStream _writeStream;
|
||||
private MemoryStream _readStream;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Benchmarks
|
||||
// Code for the *Slow and *Unsafe implementations taken from NetSerializer, licensed under the MIT license.
|
||||
|
||||
[MemoryDiagnoser]
|
||||
public class NetSerializerStringBenchmark
|
||||
public sealed class NetSerializerStringBenchmark
|
||||
{
|
||||
private const int StringByteBufferLength = 256;
|
||||
private const int StringCharBufferLength = 128;
|
||||
|
||||
@@ -3,7 +3,7 @@ using BenchmarkDotNet.Attributes;
|
||||
|
||||
namespace Content.Benchmarks
|
||||
{
|
||||
public class StereoToMonoBenchmark
|
||||
public sealed class StereoToMonoBenchmark
|
||||
{
|
||||
[Params(128, 256, 512)]
|
||||
public int N { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user