Thanks Daniel, very interesting!
We are running four production instances with Kemi Python v2 and will launch two more instances starting next month on Python v3.
So far Python v2 has worked flawlessly!
As a side note, would be great to have a official recommended language for KEMI so other devs can share modules/codes/tutorials etc.. having too many languages, in my opinion, reduces the benefit a community can provide.
All the best,
Samuel ________________________________ From: sr-users sr-users-bounces@lists.kamailio.org on behalf of Daniel-Constantin Mierla miconda@gmail.com Sent: Tuesday, December 11, 2018 09:30 To: Kamailio (SER) - Users Mailing List; Kamailio (SER) - Devel Mailing List; business@lists.kamailio.org Subject: [SR-Users] Performance tests of native vs. kemi scripting for SIP routing
Hello,
during the preparations of Kamailio v5.2.0 and the days after, I got the time to run some tests in order to see the differences of running similar SIP routing logic when using native configuration file scripting versus KEMI languages. So far I did it for Lua and Python (v2), hopefully I will find time to run also for the rest of supported scripting languages: Python (v3), JavaScript, Ruby, Squrrel and Lua with LuaJIT.
The pleasant surprise was to see that this time, the results of using Python were similar to native scripting and Lua. When I did some basic tests during development of KEMI, using Python seemed slower.
More details about how tests were performed, the config files/scripts, used tools and results were published in a wiki page:
- https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamail...
A news article with further details is on kamailio website:
- https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.kamail...
Should anyhow of you have some time to run the tests in own environment and share the results (on sr-users mailing list), it would be appreciated and would help to validate the tests and discover if I forgot something in any of the configs. Note that the goal of the tests is not measuring the capacity of Kamailio in your environment, but see the differences between using different scripting languages in the same environment (so you can do the tests on raspberry pi, if you like).
I would also be interested in knowing if you are using Kamailio with KEMI or you are planning to, if yes, which scripting language. If already doing it, is already in production? These are useful to plan where to allocate developer resources in the future...
And to start, I am running Kamailio with Lua (4 instances) and Python (1) scripting in production deployments, with very good results so far.
Cheers, Daniel
-- Daniel-Constantin Mierla -- https://nam04.safelinks.protection.outlook.com/?url=www.asipto.com&data=... https://nam04.safelinks.protection.outlook.com/?url=www.twitter.com%2Fmicond... -- https://nam04.safelinks.protection.outlook.com/?url=www.linkedin.com%2Fin%2F... Kamailio World Conference - May 6-8, 2019 -- https://nam04.safelinks.protection.outlook.com/?url=www.kamailioworld.com&am... Kamailio Advanced Training -- https://nam04.safelinks.protection.outlook.com/?url=www.asipto.com&data=...
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.kama...