local C=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local J=require(C.Matter)local E=require(C.Matter_0_8)local l=J.World.new()local f=E.World.new()local T,w=J.component(),J.component()local Z,D=E.component(),E.component()for C=1,10000,1 do l:spawnAt(C,T({}),w({}))f:spawnAt(C,Z({}),D({}))end return{ParameterGenerator=function()return end,Functions={["\077\097\116\116\101\114 \048\046\057"]=function()local C=l:query(T,w)for J=1,1000,1 do C:next()end end;["\077\097\116\116\101\114 \048\046\056\046\052"]=function()local C=f:query(Z,D)for J=1,1000,1 do C:next()end end}}
--!optimize 2
--!native
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Matter = require(ReplicatedStorage.Matter)
local PinnedMatter = require(ReplicatedStorage.Matter_0_8)

local world = Matter.World.new()
local pinnedWorld = PinnedMatter.World.new()

local A, B = Matter.component(), Matter.component()
local pinnedA, pinnedB = PinnedMatter.component(), PinnedMatter.component()

for i = 1, 10_000 do
	world:spawnAt(i, A({}), B({}))
	pinnedWorld:spawnAt(i, pinnedA({}), pinnedB({}))
end

return {
	ParameterGenerator = function()
		return
	end,

	Functions = {
		["Matter 0.9"] = function()
			local query = world:query(A, B)
			for _ = 1, 1_000 do
				query:next()
			end
		end,
		["Matter 0.8.4"] = function()
			local query = pinnedWorld:query(pinnedA, pinnedB)
			for _ = 1, 1_000 do
				query:next()
			end
		end,
	},
}
