
68.9k Views
1.1k Executions
Script Performance Evaluator or SPE
Universal Script 📌
UnnesscaryInventions1M views
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Evaluate script performance by tracking how long it takes to execute! NOTE = { This is a rushed script! }
Updates
Script edited: Create script
local function measureExecutionTime(codeBlock)
local startTime = os.clock()
codeBlock()
local endTime = os.clock()
local elapsedTime = endTime - startTime
return elapsedTime
end
local function classifyPerformance(time)
if time < 0.1 then
return "Perfect"
elseif time < 0.25 then
return "Excellent"
elseif time < 0.5 then
return "Great"
elseif time < 0.75 then
return "Considerable"
elseif time < 1 then
return "Average"
elseif time < 2 then
return "Poor"
else
return "Bad"
end
end
local time = measureExecutionTime(function()
-- // Example code. Replace with your own code
local sum = 0
for i = 1, 1000000 do
sum = sum + i
end
print(sum)
end)
print(string.format("Execution time: %.6f seconds - Performance: %s", time, classifyPerformance(time)))









@UnnesscaryInventions you know it
@Gray
Just tested it. It works
Lmaoo ur doom when u realize os.clock() doesn't support by roblox that's why tick() invented
it's gotta be another monstrosity :sob: - h.ry1