chevron_leftchevron_leftchevron_left
    of     2   

dennis96411
#182528914Thursday, January 28, 2016 12:22 AM GMT

I did it in the studio command bar, if it makes any difference. local tick, noop, a = tick, function() end, tick() for i = 1, 10000000 do tick("hi", 1, true) end local b = tick() for i = 1, 10000000 do noop("hi", 1, true) end print("noop", tick() - b) print("tick", b - a) > noop 10.288967847824 > tick 7.498881816864
128Gigabytes
#182529095Thursday, January 28, 2016 12:26 AM GMT

noop 0.99398469924927 tick 1.6091134548187
dennis96411
#182529188Thursday, January 28, 2016 12:27 AM GMT

Hang on, let me restart the studio. I had it open for awhile, so maybe there was too much garbage in the memory.
JarodOfOrbiter
#182529249Thursday, January 28, 2016 12:28 AM GMT

local t = tick start = t() for i=1, 1e8 do t() end print(tick()-start) 3.5974655151367 local t = tick local noop = function() end start = t() for i=1, 1e8 do noop() end print(tick()-start) 2.6596348285675
dennis96411
#182529318Thursday, January 28, 2016 12:29 AM GMT

Okay, this is weird. noop is faster when I'm in the default editor mode, but when I start solo mode tick is faster.
128Gigabytes
#182529511Thursday, January 28, 2016 12:33 AM GMT

I tested in studio I tested in play solo I tested in a serer I tested in the client running on that server Each one gave me tick being slower
dennis96411
#182529902Thursday, January 28, 2016 12:40 AM GMT

If the general consensus is that noop is faster, then I guess I'll use it. Must be something weird going on on my end.

chevron_leftchevron_leftchevron_left
    of     2