mirror of
https://github.com/Ukendio/jecs.git
synced 2025-04-24 17:10:03 +00:00
Include ECR in benchmark
This commit is contained in:
parent
44e6813cfb
commit
3816777724
3 changed files with 10 additions and 3 deletions
|
@ -47,4 +47,4 @@ assert(world:get(opponentId, Health) == 92)
|
|||
|
||||
```
|
||||
|
||||

|
||||

|
|
@ -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
BIN
image-3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 121 KiB |
Loading…
Reference in a new issue