SetGVarString(varname[], value[], id = 0);
SetGVarInt(varname[], value, id = 0);
SetGVarFloat(varname[], Float:value, accuracy = 6, id = 0);
SetGVarBool(varname[], bool:value, id = 0);
SetGVarHex(varname[], value, id = 0);
SetGVarBin(varname[], value, id = 0);
GetGVarString(varname[], id = 0);
GetGVarStringEx(varname[], dest[], size = sizeof dest, bool:pack = false, id = 0);
GetGVarInt(varname[], id = 0);
Float:GetGVarFloat(varname[], id = 0);
bool:GetGVarBool(varname[], id = 0);
GetGVarBin(varname[], id = 0);
GetGVarHex(varname[], id = 0);
DeleteGVar(varname[], id = 0);
#include <gvar>
#include <a_samp>
#include <gvar>
Bench for SetGVarInt: executes, by average, 801.36 times/ms. Bench for SetGVarFloat:: executes, by average, 717.23 times/ms. Bench for SetGVarString: executes, by average, 906.33 times/ms. Bench for SetGVarBool: executes, by average, 913.14 times/ms. Bench for SetGVarHex: executes, by average, 785.13 times/ms. Bench for SetGVarBin: executes, by average, 741.88 times/ms. Bench for GetGVarInt: executes, by average, 749.38 times/ms. Bench for GetGVarFloat:: executes, by average, 487.21 times/ms. Bench for GetGVarString: executes, by average, 806.46 times/ms. Bench for GetGVarBool: executes, by average, 708.75 times/ms. Bench for GetGVarHex: executes, by average, 517.23 times/ms. Bench for GetGVarBin: executes, by average, 534.33 times/ms. Bench for DeleteGVar: executes, by average, 1139.07 times/ms.
Bench for SetGVarInt: executes, by average, 4131.94 times/ms. Bench for SetGVarFloat:: executes, by average, 4068.75 times/ms. Bench for SetGVarString: executes, by average, 2248.70 times/ms. Bench for GetGVarInt: executes, by average, 4107.01 times/ms. Bench for GetGVarFloat:: executes, by average, 3705.45 times/ms. Bench for GetGVarString: executes, by average, 3157.29 times/ms. Bench for DeleteGVar: executes, by average, 4481.86 times/ms.
Yes, I compared with the Incognito's GVar plugin, and here are the results:
Code:
Bench for SetGVarInt: executes, by average, 4131.94 times/ms. Bench for SetGVarFloat:: executes, by average, 4068.75 times/ms. Bench for SetGVarString: executes, by average, 2248.70 times/ms. Bench for GetGVarInt: executes, by average, 4107.01 times/ms. Bench for GetGVarFloat:: executes, by average, 3705.45 times/ms. Bench for GetGVarString: executes, by average, 3157.29 times/ms. Bench for DeleteGVar: executes, by average, 4481.86 times/ms. I am actually aware that his plugin is faster, he mentioned that his plugin is faster than properties. He also posted some benchmarks: http://forum.sa-mp.com/showpost.php?...1&postcount=34 He also mentioned some good points regarding to his plugin and properties in that post. |
Yes, I compared with the Incognito's GVar plugin, and here are the results:
Code:
Bench for SetGVarInt: executes, by average, 4131.94 times/ms. Bench for SetGVarFloat:: executes, by average, 4068.75 times/ms. Bench for SetGVarString: executes, by average, 2248.70 times/ms. Bench for GetGVarInt: executes, by average, 4107.01 times/ms. Bench for GetGVarFloat:: executes, by average, 3705.45 times/ms. Bench for GetGVarString: executes, by average, 3157.29 times/ms. Bench for DeleteGVar: executes, by average, 4481.86 times/ms. I am actually aware that his plugin is faster, he mentioned that his plugin is faster than properties. He also posted some benchmarks: http://forum.sa-mp.com/showpost.php?...1&postcount=34 He also mentioned some good points regarding to his plugin and properties in that post. |