benchmark to use entt::component (#290)
* benchmark to use entt::component * updated list of contributors
This commit is contained in:
committed by
Michele Caini
parent
03949f7d60
commit
97dd928ca4
3
AUTHORS
3
AUTHORS
@@ -19,12 +19,12 @@ eugeneko
|
||||
gale83
|
||||
ghost
|
||||
Green-Sky
|
||||
Kerndog73
|
||||
Lawrencemm
|
||||
mhammerc
|
||||
Milerius
|
||||
morbo84
|
||||
m-waka
|
||||
Kerndog73
|
||||
Paolo-Oliverio
|
||||
pgruenbacher
|
||||
prowolf
|
||||
@@ -33,3 +33,4 @@ vblanco20-1
|
||||
willtunnels
|
||||
WizardIke
|
||||
w1th0utnam3
|
||||
zaucy
|
||||
|
||||
@@ -167,8 +167,7 @@ TEST(Benchmark, IterateSingleComponentRuntime1M) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>() };
|
||||
entt::component types[] = { registry.type<position>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -333,8 +332,7 @@ TEST(Benchmark, IterateTwoComponentsRuntime1M) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>(), registry.type<velocity>() };
|
||||
entt::component types[] = { registry.type<position>(), registry.type<velocity>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -362,8 +360,7 @@ TEST(Benchmark, IterateTwoComponentsRuntime1MHalf) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>(), registry.type<velocity>() };
|
||||
entt::component types[] = { registry.type<position>(), registry.type<velocity>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -391,8 +388,7 @@ TEST(Benchmark, IterateTwoComponentsRuntime1MOne) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>(), registry.type<velocity>() };
|
||||
entt::component types[] = { registry.type<position>(), registry.type<velocity>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -565,8 +561,7 @@ TEST(Benchmark, IterateThreeComponentsRuntime1M) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>(), registry.type<velocity>(), registry.type<comp<0>>() };
|
||||
entt::component types[] = { registry.type<position>(), registry.type<velocity>(), registry.type<comp<0>>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -596,8 +591,7 @@ TEST(Benchmark, IterateThreeComponentsRuntime1MHalf) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>(), registry.type<velocity>(), registry.type<comp<0>>() };
|
||||
entt::component types[] = { registry.type<position>(), registry.type<velocity>(), registry.type<comp<0>>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -627,8 +621,7 @@ TEST(Benchmark, IterateThreeComponentsRuntime1MOne) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = { registry.type<position>(), registry.type<velocity>(), registry.type<comp<0>>() };
|
||||
entt::component types[] = { registry.type<position>(), registry.type<velocity>(), registry.type<comp<0>>() };
|
||||
|
||||
timer timer;
|
||||
registry.runtime_view(std::begin(types), std::end(types)).each(func);
|
||||
@@ -842,8 +835,7 @@ TEST(Benchmark, IterateFiveComponentsRuntime1M) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = {
|
||||
entt::component types[] = {
|
||||
registry.type<position>(),
|
||||
registry.type<velocity>(),
|
||||
registry.type<comp<0>>(),
|
||||
@@ -883,8 +875,7 @@ TEST(Benchmark, IterateFiveComponentsRuntime1MHalf) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = {
|
||||
entt::component types[] = {
|
||||
registry.type<position>(),
|
||||
registry.type<velocity>(),
|
||||
registry.type<comp<0>>(),
|
||||
@@ -924,8 +915,7 @@ TEST(Benchmark, IterateFiveComponentsRuntime1MOne) {
|
||||
}
|
||||
|
||||
auto test = [®istry](auto func) {
|
||||
using component_type = typename entt::registry::component_type;
|
||||
component_type types[] = {
|
||||
entt::component types[] = {
|
||||
registry.type<position>(),
|
||||
registry.type<velocity>(),
|
||||
registry.type<comp<0>>(),
|
||||
|
||||
Reference in New Issue
Block a user