---
title: "Script Performance Evaluator or SPE | Universal Roblox Script - ScriptBlox"
description: "Script Performance Evaluator or SPE for any Roblox game: Evaluate script performance by tracking how long it takes to execute! NOTE = { This is a rushed..."
canonical_url: "https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182"
meta:
  "og:description": "Script Performance Evaluator or SPE for any Roblox game: Evaluate script performance by tracking how long it takes to execute! NOTE = { This is a rushed..."
  "og:image": "https://scriptblox.com/images/script/9163064-1722082886469.png"
  "og:title": "Script Performance Evaluator or SPE | Universal Roblox Script - ScriptBlox"
  "twitter:description": "Script Performance Evaluator or SPE for any Roblox game: Evaluate script performance by tracking how long it takes to execute! NOTE = { This is a rushed..."
  "twitter:image": "https://scriptblox.com/images/script/9163064-1722082886469.png"
  "twitter:title": "Script Performance Evaluator or SPE | Universal Roblox Script - ScriptBlox"
---

> Index of every page on this site: [llms.txt](https://scriptblox.com/llms.txt)

![Universal Script 📌](https://scriptblox.com/images/script/9163064-1722082886469.png)

# **Script Performance Evaluator or SPE**

[**Universal Script 📌**](https://scriptblox.com/game/universal)**![UnnesscaryInventions](https://scriptblox.com/images/photo/6678169b794e634f0700eaa2-1719146257838.jpg) [UnnesscaryInventions](https://scriptblox.com/u/UnnesscaryInventions)1M views**

2 years ago

[**Get an executor**](https://scriptblox.com/executors?kind=executor)

Please login to perform these actions:

## **Does it work? **

**No reports yet **

No 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 **

1. Mar 27, 2025

   ****Script edited:**** Create script

[View Raw](https://scriptblox.com/raw/Universal-Script-Script-Performance-Evaluator-or-SPE-16182)

```
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)))


```

## **Comments **

**5**

Log in to join the conversation. [**Login **](https://scriptblox.com/login?redirect=/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182)

![mxsynry's profile picture](https://scriptblox.com/images/photo/668d444def2f1c9d49505da5-1720534208532.jpg)

[**mxsynry**](https://scriptblox.com/u/mxsynry)Lv 102 years ago(edited)

[@UnnesscaryInventions](https://scriptblox.com/u/UnnesscaryInventions) you know it

1

![UnnesscaryInventions's profile picture](https://scriptblox.com/images/photo/6678169b794e634f0700eaa2-1719146257838.jpg)

[**UnnesscaryInventions**](https://scriptblox.com/u/UnnesscaryInventions)**Uploader**2 years ago(edited)

[@Gray](https://scriptblox.com/u/Gray)

1

![UnnesscaryInventions's profile picture](https://scriptblox.com/images/photo/6678169b794e634f0700eaa2-1719146257838.jpg)

[**UnnesscaryInventions**](https://scriptblox.com/u/UnnesscaryInventions)**Uploader**2 years ago(edited)

Just tested it. It works

1

![Gray's profile picture](https://scriptblox.com/images/photo/657afa285d75332ca0937c2a-1713282925424.jpg)

[**Gray**](https://scriptblox.com/u/Gray)2 years ago(edited)

Lmaoo ur doom when u realize os.clock() doesn't support by roblox that's why tick() invented

1

![UnnesscaryInventions's profile picture](https://scriptblox.com/images/photo/6678169b794e634f0700eaa2-1719146257838.jpg)

[**UnnesscaryInventions**](https://scriptblox.com/u/UnnesscaryInventions)**Uploader**2 years ago(edited)

it's gotta be another monstrosity :sob: - h.ry1

1

```json
{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182#script","url":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182","name":"Script Performance Evaluator or SPE","programmingLanguage":"Lua","runtimePlatform":"Roblox","author":{"@type":"Person","name":"UnnesscaryInventions","url":"https://scriptblox.com/u/UnnesscaryInventions"},"datePublished":"2024-07-27T12:21:26.543Z","image":"https://scriptblox.com/images/script/9163064-1722082886469.png","isAccessibleForFree":true}
```

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://scriptblox.com/#website","@type":"WebSite","description":"Search free Roblox scripts uploaded by the community, with live status for every major executor. Browse by game, copy the loadstring and run it in your executor.","inLanguage":"en","name":"ScriptBlox","url":"https://scriptblox.com/"},{"@id":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182#webpage","@type":"WebPage","description":"Script Performance Evaluator or SPE for any Roblox game: Evaluate script performance by tracking how long it takes to execute! NOTE = { This is a rushed...","name":"Script Performance Evaluator or SPE | Universal Roblox Script - ScriptBlox","url":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182","breadcrumb":{"@id":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182#breadcrumb"},"isPartOf":{"@id":"https://scriptblox.com/#website"},"mainEntity":{"@id":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182#script"},"potentialAction":[{"@type":"ReadAction","target":["https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182"]}]},{"@id":"https://scriptblox.com/script/Universal-Script-Script-Performance-Evaluator-or-SPE-16182#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://scriptblox.com","position":1},{"@type":"ListItem","name":"Universal","item":"https://scriptblox.com/game/universal","position":2},{"@type":"ListItem","name":"Script Performance Evaluator or SPE","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://scriptblox.com/sitemap.md) for all pages.
