Skip to content

Commit

Permalink
Engine - Tests: update perf timings in Test_Entity_Tree
Browse files Browse the repository at this point in the history
  • Loading branch information
friflo committed Jul 21, 2024
1 parent b83e7ce commit 3f9f41f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Engine/src/Tests/ECS/Entity/Test_Entity_Tree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public static void Test_Entity_Tree_TreeNode()
public static void Test_Entity_Tree_Allocation()
{
int count = 10; // 2000
// Test_Entity_Tree_Allocation - count: 2000 entities: 4002001 duration: 674 ms
// Test_Entity_Tree_Allocation - count: 2000 entities: 4002001 duration: 486 ms
var store = new EntityStore();
var root = store.CreateEntity(1);
var type = store.GetArchetype(default);
Expand Down Expand Up @@ -815,7 +815,7 @@ public static void Test_Entity_Tree_AddChild_Entities_UseRandomPids_Perf()
var store = new EntityStore(PidType.RandomPids);
var root = store.CreateEntity();
root.AddComponent(new EntityName("Root"));
int count = 10; // 10_000_000 ~ #PC: 2824 ms
int count = 10; // 10_000_000 ~ #PC: 2631 ms
var type = store.GetArchetype(default);
var sw = new Stopwatch();
sw.Start();
Expand All @@ -834,7 +834,7 @@ public static void Test_Entity_Tree_AddChild_Entities_UsePidAsId_Perf()
var root = store.CreateEntity();
root.AddComponent(new EntityName("Root"));

int count = 10; // 10_000_000 ~ #PC: 776 ms
int count = 10; // 10_000_000 ~ #PC: 512 ms
var type = store.GetArchetype(default);
var sw = new Stopwatch();
sw.Start();
Expand Down

0 comments on commit 3f9f41f

Please sign in to comment.