Skip to content

Commit

Permalink
my fault :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
skypjack committed Mar 11, 2018
2 parents 920ec8c + 2fbfedc commit dbb3b43
Showing 1 changed file with 9 additions and 27 deletions.
36 changes: 9 additions & 27 deletions test/benchmark/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,8 @@ TEST(Benchmark, SortMulti) {
}

TEST(Benchmark, SpaceConstruct) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};

std::cout << "Constructing 1000000 entities" << std::endl;

Expand All @@ -334,10 +332,8 @@ TEST(Benchmark, SpaceConstruct) {
}

TEST(Benchmark, SpaceAssign) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};

std::cout << "Assigning 1000000 entities" << std::endl;

Expand All @@ -355,10 +351,8 @@ TEST(Benchmark, SpaceAssign) {
}

TEST(Benchmark, SpaceIterateSingleComponent1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};

std::cout << "Iterating over 1000000 entities, one component" << std::endl;

Expand All @@ -373,10 +367,8 @@ TEST(Benchmark, SpaceIterateSingleComponent1M) {
}

TEST(Benchmark, SpaceIterateTwoComponents1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};

std::cout << "Iterating over 1000000 entities, two components" << std::endl;

Expand All @@ -391,10 +383,8 @@ TEST(Benchmark, SpaceIterateTwoComponents1M) {
}

TEST(Benchmark, SpaceIterateTwoComponentsPersistent1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};
registry.prepare<Position, Velocity>();

std::cout << "Iterating over 1000000 entities, two components, persistent view" << std::endl;
Expand All @@ -410,10 +400,8 @@ TEST(Benchmark, SpaceIterateTwoComponentsPersistent1M) {
}

TEST(Benchmark, SpaceIterateFiveComponents1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};

std::cout << "Iterating over 1000000 entities, five components" << std::endl;

Expand All @@ -428,10 +416,8 @@ TEST(Benchmark, SpaceIterateFiveComponents1M) {
}

TEST(Benchmark, SpaceIterateFiveComponentsPersistent1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};
registry.prepare<Position, Velocity, Comp<1>, Comp<2>, Comp<3>>();

std::cout << "Iterating over 1000000 entities, five components, persistent view" << std::endl;
Expand All @@ -447,10 +433,8 @@ TEST(Benchmark, SpaceIterateFiveComponentsPersistent1M) {
}

TEST(Benchmark, SpaceIterateTenComponents1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};

std::cout << "Iterating over 1000000 entities, ten components" << std::endl;

Expand All @@ -465,10 +449,8 @@ TEST(Benchmark, SpaceIterateTenComponents1M) {
}

TEST(Benchmark, SpaceIterateTenComponentsPersistent1M) {
using entity_type = entt::DefaultRegistry::entity_type;

entt::DefaultRegistry registry;
entt::Space<entity_type> space{registry};
entt::DefaultSpace space{registry};
registry.prepare<Position, Velocity, Comp<1>, Comp<2>, Comp<3>, Comp<4>, Comp<5>, Comp<6>, Comp<7>, Comp<8>>();

std::cout << "Iterating over 1000000 entities, ten components, persistent view" << std::endl;
Expand Down

0 comments on commit dbb3b43

Please sign in to comment.