This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devel:config-engines [2016/05/03 13:49] miconda |
devel:config-engines [2016/05/03 18:34] miconda |
||
---|---|---|---|
Line 382: | Line 382: | ||
</ | </ | ||
- | ===== Examples | + | ===== Basic IP Telephony Config Example |
Some examples of configuration files using the native, Lua or Python interpreter are available in Kamailio source tree inside the **examples/ | Some examples of configuration files using the native, Lua or Python interpreter are available in Kamailio source tree inside the **examples/ | ||
Line 457: | Line 457: | ||
Testing was done for registrations with user authentication, | Testing was done for registrations with user authentication, | ||
- | The values are in micro-seconds (1 / 1 000 000 of a second) and represents the average execution time, the minimum execution time and the maximum execution time. | + | The values are in micro-seconds (1 / 1 000 000 of a second) and represents the average execution time, the minimum execution time and the maximum execution time for request_route{...} block (or the equivalent of). |
The results were: | The results were: | ||
Line 474: | Line 474: | ||
Remarks: | Remarks: | ||
- | * the avverage | + | * the average |
* the test was run many times, the Native and Lua execution were close to each other, many times Lua being faster, but again, at small difference | * the test was run many times, the Native and Lua execution were close to each other, many times Lua being faster, but again, at small difference | ||
* no big surprise as Lua is calling directly the C bindings and its interpreter is written also in C. With the config used in the tests, the Lua script doesn' | * no big surprise as Lua is calling directly the C bindings and its interpreter is written also in C. With the config used in the tests, the Lua script doesn' | ||
- | * Python is slower comparing to Native and Lua, but not that much as one may expect. | + | * Python is slower comparing to Native and Lua, but not that much as one may expect. |
* in some tests, the maximum execution time was between 5000 and 10000 micro-second, | * in some tests, the maximum execution time was between 5000 and 10000 micro-second, | ||