Ukendio / jecs

A fast, portable Entity Component System for Luau
https://ukendio.github.io/jecs/
MIT License
121 stars 20 forks source link

Create a more generalized benchmark #84

Closed alicesaidhi closed 1 week ago

alicesaidhi commented 2 months ago

Implements benchmarks that allow for more insight on the performance of jecs that can be ran independently of the benchmarker plugin.

This currently implements benchmarks for the following operations:

Ukendio commented 2 months ago

I was looking at the number of archetypes, and this benchmark actually creates one extra archetype than what is reported. This extra one should be removed.

alicesaidhi commented 1 month ago

Are you sure the archetype is actually iterated over?

Ukendio commented 1 month ago

Are you sure the archetype is actually iterated over?

Yeah, if you call #query:archetypes() and it returns that extra archetype, it will iterate over the archetype. It will switch if theres no entity though.