abeimler/ecs_benchmark

Timing and creating entities

empyreanx opened this issue · 3 comments

For the 3 systems with mixed entities benchmark, is the time to create and add entities to the systems included in the total time? I've written my own simple ECS and I'm trying to recreate the benchmarks and apply them as accurately as I can.

Hi,
if you look at the benchmark BM_SystemsUpdateMixedEntities (and know a bit about google-benchmark), the entities get created first and then the app.update(fakeTimeDelta); get measured.
Also see createEntitiesWithMixedComponents, how the entities gets created.

(if you are looking for the specific google-benckmark, you can find them in the plot.config.json, just look up at the regex (matching name of the google-benchmark) and the matching title)

You can also have a look at entt benchmark or OpenEcs benchmark

Thanks that is super helpful!