Remove aggregate construction

This commit is contained in:
aaron 2024-12-26 21:17:14 +00:00
parent 3b8d9098c0
commit ccaeb030f3
4 changed files with 5 additions and 72 deletions

View file

@ -544,38 +544,4 @@ ROOT_BENCH("spring step", function()
end)
end)
TITLE "aggregate"
do
-- the purpose of the two following benchmarks is to measure the overhead of
-- aggregate construction
ROOT_BENCH("set explicit vector", function()
local apply = require "../src/apply"
local label = create "TextLabel" {
AnchorPoint = vector.create(1, 1, 1)
}
for i = 1, START(N) do
apply(label, {
AnchorPoint = vector.create(i, i, i)
})
end
end)
ROOT_BENCH("set aggregate vector", function()
local apply = require "../src/apply"
local label = create "TextLabel" {
AnchorPoint = vector.create(1, 1, 1)
}
for i = 1, START(N) do
apply(label, {
AnchorPoint = { i, i, i }
})
end
end)
end
return nil