View Single Post
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 08-01-2020 , 23:55   Re: [TUT] SourcePawn Scripting - Tips, Basics to Advanced
Reply With Quote #40

Quote:
Originally Posted by BHaType View Post
I'll just leave it as information maybe it will be useful for someone

INT & BOOL & FLOAT


PROPERTY


command


CHAR


OTHER


Code
You should do these bench-tests without C-States skewing the results causing high variance between the VM.
Example below way too much variance.
PHP Code:
BenchMin 0.000075Avg 0.001785Max 0.034192 SetEntProp(0Prop_Send"m_bColdWorld"1

For abit of context anyone who will choose the faster function.
ClientCommand and FakeClientCommand are not comparable they do different jobs FakeClientCommandEx would be equivalent.
PHP Code:
BenchMin 0.001201Avg 0.001476Max 0.002383 FakeClientCommand(client"sm_somecommand");
BenchMin 0.000213Avg 0.000286Max 0.000483 ClientCommand(client"sm_somecommand"); 
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D

Last edited by Lux; 08-01-2020 at 23:56.
Lux is offline