if _G.__testmode__~="\098\101\110\099\104\109\097\114\107"then return end print("\114\117\110\110\105\110\103 \115\116\114\101\115\115 \116\101\115\116")local k=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local c=game:GetService("\082\117\110\083\101\114\118\105\099\101")local O=require(k.Packages.BridgeNet2)local M=require("\064\115\114\099\047\115\101\114\118\101\114\047\112\114\111\099\101\115\115")M.addEvent(1)M.connect(1,print)c.Heartbeat:Connect(function()debug.profilebegin("\098\101\110\099\104\109\097\114\107")for k=1,200,1 do M.fireAll(1,"")end debug.profileend()end)
if _G.__testmode__ ~= "benchmark" then
	return
end

print("running stress test")

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")

local _BridgeNet2 = require(ReplicatedStorage.Packages.BridgeNet2)
local serverProcess = require("@src/server/process")

serverProcess.addEvent(1)
serverProcess.connect(1, print)

RunService.Heartbeat:Connect(function()
	debug.profilebegin("benchmark")
	for i = 1, 200 do
		serverProcess.fireAll(1, "")
	end
	debug.profileend()
end)
