test: benchmark update all parents of 500->1 graph now have 1000 dependencies

This commit is contained in:
ernisto 2025-04-11 14:07:36 -03:00
parent 71e59639c9
commit 04388ec1b1

View file

@ -153,21 +153,21 @@ ROOT_BENCH("update 1000->1 graph", function()
end end
end) end)
ROOT_BENCH("update all parents of 500->1 graph", function() ROOT_BENCH("update all parents of 1000->1 graph", function()
local srcs = {} local srcs = {}
for i = 1, 500 do for i = 1, 1000 do
srcs[i] = source(0) srcs[i] = source(0)
end end
derive(function() derive(function()
for i = 1, 500 do for i = 1, 1000 do
srcs[i]() srcs[i]()
end end
return false return false
end) end)
for i = 1, START(1) do for i = 1, START(1) do
for idx = 1, 500 do for idx = 1, 1000 do
srcs[idx](i) srcs[idx](i)
end end
end end