This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
kemi:performance-tests:5.2.x [2018/12/06 09:42] miconda [SIPP Scenario] |
kemi:performance-tests:5.2.x [2019/01/07 09:05] (current) miconda [Remarks] |
||
---|---|---|---|
Line 131: | Line 131: | ||
===== SIPP Testing Command ===== | ===== SIPP Testing Command ===== | ||
+ | |||
+ | SIPP was run on the same system with Kamailio. The command is: | ||
< | < | ||
Line 505: | Line 507: | ||
#!ifdef WITH_CFGPYTHON | #!ifdef WITH_CFGPYTHON | ||
- | modparam(" | + | modparam(" |
cfgengine " | cfgengine " | ||
#!else | #!else | ||
Line 516: | Line 518: | ||
#!ifdef WITH_CFGJSDT | #!ifdef WITH_CFGJSDT | ||
- | modparam(" | + | modparam(" |
cfgengine " | cfgengine " | ||
#!else | #!else | ||
#!ifdef WITH_CFGSQLANG | #!ifdef WITH_CFGSQLANG | ||
- | modparam(" | + | modparam(" |
cfgengine " | cfgengine " | ||
#!else | #!else | ||
Line 1009: | Line 1011: | ||
function ksr_route_reqinit() | function ksr_route_reqinit() | ||
if not KSR.is_myself_srcip() then | if not KSR.is_myself_srcip() then | ||
- | if not KSR.htable.sht_has_name(" | + | if KSR.htable.sht_has_name(" |
-- ip is already blocked | -- ip is already blocked | ||
KSR.dbg(" | KSR.dbg(" | ||
Line 1022: | Line 1024: | ||
end | end | ||
end | end | ||
- | if KSR.corex.has_user_agent() then | + | if KSR.corex.has_user_agent() |
if string.find(K_ua, | if string.find(K_ua, | ||
or string.find(K_ua, | or string.find(K_ua, | ||
Line 1433: | Line 1435: | ||
return -255; | return -255; | ||
- | if KSR.corex.has_user_agent() : | + | if KSR.corex.has_user_agent() |
ua = KSR.pv.gete(" | ua = KSR.pv.gete(" | ||
if (ua.find(" | if (ua.find(" | ||
Line 1680: | Line 1682: | ||
</ | </ | ||
- | Executed when running with Lua scripting language: | + | Executed when running with Python |
< | < | ||
Line 1871: | Line 1873: | ||
===== Remarks ===== | ===== Remarks ===== | ||
- | Mentioning it again, the target of the tests was not to measure the capacity of Kamailio processing, but how the execution time differs in more or less same conditions between native scripting configuration file and KEMI alternatives, | + | Mentioning it again, the target of the tests was not to measure the capacity of Kamailio processing, but how the execution time differs in more or less same conditions between native scripting configuration file and KEMI alternatives, |
- | Testing was done on the same system, running first the test with native configuration file and immediately after, the one for Lua scripting. | + | Testing was done on the same system, running first the test with native configuration file and immediately after, the one for Lua or Python |
It was observed that the execution of native scripting routing blocks and Lua scripting functions takes more or less same time. Sometimes is native scripting slightly faster, other times is Lua scripting slightly faster. The average (for both native and Lua scripts) is in the range of 60 to 80 microseconds ( 1 / 1 000 000 of a second) for processing the registration request. The minimum reflects more what it takes for the first REGISTER request without authorization header, which is quickly challenged with 401 response. The maximum reflect the processing of the REGISTER request with valid authorization header, which does a query to database to fetch the password as well as store/ | It was observed that the execution of native scripting routing blocks and Lua scripting functions takes more or less same time. Sometimes is native scripting slightly faster, other times is Lua scripting slightly faster. The average (for both native and Lua scripts) is in the range of 60 to 80 microseconds ( 1 / 1 000 000 of a second) for processing the registration request. The minimum reflects more what it takes for the first REGISTER request without authorization header, which is quickly challenged with 401 response. The maximum reflect the processing of the REGISTER request with valid authorization header, which does a query to database to fetch the password as well as store/ |