Include ECR in benchmark

This commit is contained in:
Ukendio 2024-04-25 16:41:41 +02:00
parent 44e6813cfb
commit 3816777724
3 changed files with 10 additions and 3 deletions

View file

@ -47,4 +47,4 @@ assert(world:get(opponentId, Health) == 92)
```
![Comparison](image-2.png)
![Comparison](image-3.png)

View file

@ -196,14 +196,21 @@ return {
Functions = {
Mater = function()
local matched = 0
for entityId, firstComponent in newWorld:query(A2, A3, A4, A1) do
for entityId, firstComponent in newWorld:query(A2, A4, A6, A8) do
matched += 1
end
end,
ECR = function()
local matched = 0
for entityId, firstComponent in registry2:view(B2, B4, B6, B8) do
matched += 1
end
end,
Jecs = function()
local matched = 0
for entityId, firstComponent in ecs:query(D2, D3, D4, D1) do
for entityId, firstComponent in ecs:query(D2, D4, D6, D8) do
matched += 1
end

BIN
image-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB