public void LambdaJobsForEachStructuralChanges_Performance_InLambda_vs_WithECB([Values(1, 1000, 10000)] int entityCount, [Values(true, false)] bool withECB) { EntityArchetype archetype = new EntityArchetype(); archetype = m_Manager.CreateArchetype(); using (var entities = new NativeArray <Entity>(entityCount, Allocator.TempJob)) { m_Manager.CreateEntity(archetype, entities); if (withECB) { Measure.Method(() => { TestSystem.StructuralChangesWithECB(m_Manager); }) .SampleGroup("StructuralChangesWithECB") .Run(); } else { Measure.Method(() => { TestSystem.StructuralChangesInLambda(m_Manager); }) .SampleGroup("StructuralChangesInLambda") .Run(); } } }