Quote:
Originally Posted by ConnorMcLeod
PHP Code:
public plugin_init() { register_plugin("formatex vs num_to_str", VERSION, "ConnorMcLeod")
new iRand, szNum[4]
for(new i; i<1000; i++) { iRand = random(1000) formatex(szNum, charsmax(szNum), "%d", iRand) num_to_str(iRand, szNum, charsmax(szNum)) } server_cmd("quit") }
Code:
date: Mon Jul 12 13:12:00 2010 map: bkz_goldbhop
type | name | calls | time / min / max
-------------------------------------------------------------------
n | register_plugin | 1 | 0.000001 / 0.000001 / 0.000001
n | random | 1000 | 0.000189 / 0.000000 / 0.000001
n | formatex | 1000 | 0.000223 / 0.000000 / 0.000001
n | num_to_str | 1000 | 0.000368 / 0.000000 / 0.000001
n | server_cmd | 1 | 0.000003 / 0.000003 / 0.000003
p | plugin_init | 1 | 0.000569 / 0.000569 / 0.000569
0 natives, 0 public callbacks, 1 function calls were not executed.
Let's stick with formatex
WOWLOL
I just thought that a specific native is better than a generic one, in that case i was wrong.
|
Thanks

Curious as to how you generated the table? All these years I always wondered how to do that. >_>
I created so many plugins but I have majorly relied on "optimizations" basically suggested alternatives to keep the server load down on things I ahve created. But never really looked into finding out how to do performance charts.
__________________