callfunc_begin
#include <amxmodx>
public plugin_init(){
register_plugin("Caller callfunc_begin", "", "");
for(new i=0; i<10000000; ++i){
callfunc_begin("funkcja", "source.amxx");
callfunc_push_int(1);
callfunc_end();
}
}
date: Fri Feb 1 19:30:11 2013 map: de_dust
type | name | calls | time / min / max
-------------------------------------------------------------------
n | register_plugin | 1 | 0.000024 / 0.000024 / 0.000024
n | callfunc_begin | 10000000 | 7.686463 / 0.000000 / 0.016224
n | callfunc_push_int | 10000000 | 3.013483 / 0.000000 / 0.012970
n | callfunc_end | 10000000 | 4.354851 / 0.000000 / 0.005816
p | plugin_init | 1 | 9.546950 / 9.546950 / 9.546950
0 natives, 0 public callbacks, 1 function calls were not executed.
callfunc_begin_i
#include <amxmodx>
public plugin_init(){
register_plugin("Caller callfunc_begin_i", "", "");
new pluginid=find_plugin_byfile("source.amxx");
new funckjaid=get_func_id("funkcja", pluginid);
for(new i=0; i<10000000; ++i){
callfunc_begin_i(funckjaid, pluginid);
callfunc_push_int(1);
callfunc_end();
}
}
date: Fri Feb 1 19:30:11 2013 map: de_dust
type | name | calls | time / min / max
-------------------------------------------------------------------
n | register_plugin | 1 | 0.000002 / 0.000002 / 0.000002
n | find_plugin_byfile | 1 | 0.000001 / 0.000001 / 0.000001
n | get_func_id | 1 | 0.000000 / 0.000000 / 0.000000
n | callfunc_begin_i | 10000000 | 3.450782 / 0.000000 / 0.004586
n | callfunc_push_int | 10000000 | 3.004047 / 0.000000 / 0.005612
n | callfunc_end | 10000000 | 4.289036 / 0.000000 / 0.006016
p | plugin_init | 1 | 9.182475 / 9.182475 / 9.182475
0 natives, 0 public callbacks, 1 function calls were not executed.
natyw
#include <amxmodx>
native natyw(a);
public plugin_init(){
register_plugin("Caller native", "", "");
for(new i=0; i<10000000; ++i){
natyw(1);
}
}
date: Fri Feb 1 19:30:11 2013 map: de_dust
type | name | calls | time / min / max
-------------------------------------------------------------------
n | register_plugin | 1 | 0.000001 / 0.000001 / 0.000001
n | natyw | 10000000 | 4.071646 / 0.000000 / 0.005121
p | plugin_init | 1 | 3.184685 / 3.184685 / 3.184685
0 natives, 0 public callbacks, 1 function calls were not executed.