ForeverDev

Untitled

Sep 27th, 2014
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local sp = require(game.ServerScriptService.StudioPlus)
  2.  
  3. local trials = {}
  4. local funcs = [[
  5.        
  6.     ->
  7.     for i = 1, 5 do
  8.         print("i : " .. i)
  9.     end
  10.     <-
  11.    
  12.     ->
  13.     for x = 1, 5 do
  14.         print("x : " .. x)
  15.     end
  16.     <-
  17.        
  18. ]]
  19.  
  20. for i = 1, 200 do
  21.     sp(Workspace.BasePlate).val(tick())
  22.     sp(funcs).multiCall()
  23.     sp(trials).insert(tick() - sp(Workspace.BasePlate).val())
  24. end
  25.  
  26. print("AVERAGE RUN TIME : " .. sp(trials).average())
Advertisement
Add Comment
Please, Sign In to add comment