Skip to content

Commit

Permalink
Revert mirror (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ukendio authored Jul 14, 2024
1 parent 85a970e commit 8a7b3de
Show file tree
Hide file tree
Showing 3 changed files with 419 additions and 877 deletions.
14 changes: 7 additions & 7 deletions benches/query.luau
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ do
TITLE("one component in common")

local function view_bench(world: jecs.World, A: i53, B: i53, C: i53, D: i53, E: i53, F: i53, G: i53, H: i53)
BENCH("1 component", function()
BENCH("1 component", function()
for _ in world:query(A) do
end
end)

BENCH("2 component", function()
for _ in world:query(A, B) do
for _ in world:query(B, A) do
end
end)

BENCH("4 component", function()
for _ in world:query(A, B, C, D) do
for _ in world:query(D, C, B, A) do
end
end)

BENCH("8 component", function()
for _ in world:query(A, B, C, D, E, F, G, H) do
for _ in world:query(H, G, F, E, D, C, B, A) do
end
end)

Expand Down Expand Up @@ -142,17 +142,17 @@ do
end)

BENCH("2 component", function()
for _ in world:query(A, B) do
for _ in world:query(B, A) do
end
end)

BENCH("4 component", function()
for _ in world:query(A, B, C, D) do
for _ in world:query(D, C, B, A) do
end
end)

BENCH("8 component", function()
for _ in world:query(A, B, C, D, E, F, G, H) do
for _ in world:query(H, G, F, E, D, C, B, A) do
end
end)

Expand Down
Loading

0 comments on commit 8a7b3de

Please sign in to comment.