|
Namolem
|
 |
« on: January 21, 2009, 12:27:09 PM » |
|
I tested these with profile and get that: Correct me if I am wrong All testes were with 1000 iterations
if (server_var(asd) = 0) faster than ifx false(asd) for 32.43840749% if (server_var(asd) != 0) faster than ifx true(asd) for 34.44989107% es es_xif (server_var(asd) = 4) then is faster than if (server_var(asd) = 4) then for 5.095211322%
|
|
|
|
« Last Edit: January 21, 2009, 12:30:27 PM by Namolem »
|
Logged
|
|
|
|
Berettonawak
Watchdogs
Level 7 Expert
   
Online
 France
Posts: 1366
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #1 on: January 21, 2009, 01:21:20 PM » |
|
If you have old ES, es es_x will be faster, but not if you use latest 
|
|
|
|
|
Logged
|
|
|
|
|
Namolem
|
 |
« Reply #2 on: January 21, 2009, 01:23:23 PM » |
|
I have ES 2.0.250
|
|
|
|
|
Logged
|
|
|
|
|
Namolem
|
 |
« Reply #3 on: January 26, 2009, 02:28:10 PM » |
|
I think I did something wrong that time while "server_var(count) < 1000" "es_keygetvalue wcs_tmp WCSraces 26 allow_only;es_xmath count + 1" profile end es_ es_xset count 0 es_xset wcs_tmp 0 profile begin es_es_x while "server_var(count) < 1000" "es es_xkeygetvalue wcs_tmp WCSraces 26 allow_only;es_xmath count + 1" profile end es_es_x Result: es_ : 0.124566 es_es_x : 0.134495
es_ : 0.121504 es_es_x : 0.134432
es_ : 0.133385 es_es_x : 0.134209
es_ : 0.126381 es_es_x : 0.133977
es_ : 0.123273 es_es_x : 0.130629
es_ : 0.122069 es_es_x : 0.135008
es_ : 0.127298 es_es_x : 0.134316
es_ : 0.122744 es_es_x : 0.132055
es_ : 0.135849 es_es_x : 0.132187
es_ : 0.123872 es_es_x : 0.131534
|
|
|
|
|
Logged
|
|
|
|
Berettonawak
Watchdogs
Level 7 Expert
   
Online
 France
Posts: 1366
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #4 on: January 26, 2009, 04:16:07 PM » |
|
Why would it be wrong? IT HAS GOOD RESULTS THAT IS NORMAL ES_ IS FASTER THAN ES ES_X EVERYONE HAS TOLD YOU ON EVENTSCRIPTS CHANNEL LOL
|
|
|
|
|
Logged
|
|
|
|
maxxi
Level 7 Expert
   
Online
 Netherlands
Posts: 539
myServer 81.26.221.156:27015(Warning: click connects through Steam)
|
 |
« Reply #5 on: January 26, 2009, 04:43:23 PM » |
|
Why would it be wrong? IT HAS GOOD RESULTS THAT IS NORMAL ES_ IS FASTER THAN ES ES_X EVERYONE HAS TOLD YOU ON EVENTSCRIPTS CHANNEL LOL
guess he ment the first time
|
|
|
|
|
Logged
|
Server = work in progress  
|
|
|
|
Namolem
|
 |
« Reply #6 on: January 26, 2009, 05:10:40 PM » |
|
yes)
|
|
|
|
|
Logged
|
|
|
|
|
[Oddity]TeacherCreature
|
 |
« Reply #7 on: January 26, 2009, 06:26:11 PM » |
|
I use eventscripts v.2.0.0.247 and "es es_xif" is way faster than "if" when you dont need expansion! Why expand for no reason that seems stupid.
|
|
|
|
« Last Edit: January 27, 2009, 02:14:17 AM by [Oddity]TeacherCreature »
|
Logged
|
|
|
|
|
Namolem
|
 |
« Reply #8 on: January 26, 2009, 06:49:25 PM » |
|
>expand for no reason
What do you mean? I think they expand same
|
|
|
|
|
Logged
|
|
|
|
Berettonawak
Watchdogs
Level 7 Expert
   
Online
 France
Posts: 1366
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #9 on: January 26, 2009, 07:36:13 PM » |
|
He meant in what you said you could just have used es_xkeygetvalue 
|
|
|
|
|
Logged
|
|
|
|
|
[Oddity]TeacherCreature
|
 |
« Reply #10 on: January 27, 2009, 02:15:07 AM » |
|
I beleive version 1.5 made expandign variables fast by using the commands without the "x". It all depends if you are expanding or not.
|
|
|
|
|
Logged
|
|
|
|
|
Namolem
|
 |
« Reply #11 on: January 27, 2009, 04:38:00 PM » |
|
1500 Iterations block test { es_xset ccount 0 es_xset tmp 4 es_xset count 0 es_xset txif 0 es_xset tif 0 es_xset wcs_tmp 0
profile begin tif while "server_var(count) < 2000" "es_xdoblock acc/test3;es_xmath count + 1" profile end tif
es_xset count 0 es_xset wcs_tmp 0
profile begin txif while "server_var(count) < 2000" "es_xdoblock acc/test2;es_xmath count + 1" profile end txif } block test2 { es es_xif (server_var(tmp) > 3) then es_xkeygetvalue wcs_tmp WCSraces 26 allow_only; } block test3 { if (server_var(tmp) > 3) then es_xkeygetvalue wcs_tmp WCSraces 26 allow_only; } Result: Profiler timer tif ended: 0.548734 Profiler timer txif ended: 0.577039
|
|
|
|
|
Logged
|
|
|
|
Berettonawak
Watchdogs
Level 7 Expert
   
Online
 France
Posts: 1366
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #12 on: January 27, 2009, 05:14:59 PM » |
|
why ";" at the end of the line? this is not php 
|
|
|
|
|
Logged
|
|
|
|
|
Namolem
|
 |
« Reply #13 on: January 27, 2009, 05:26:19 PM » |
|
cuz i copyed inattentive) no matter
|
|
|
|
|
Logged
|
|
|
|
Berettonawak
Watchdogs
Level 7 Expert
   
Online
 France
Posts: 1366
Big Berettonawak is watching you...
BifkidsmyServer 81.93.251.44:27015(Warning: click connects through Steam)
|
 |
« Reply #14 on: January 27, 2009, 05:31:57 PM » |
|
as you said, no matter 
|
|
|
|
|
Logged
|
|
|
|
|