<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>is it really just 'exit' in the ksr_core_received()? Because that
should shut down kamailio.</p>
<p>Anyhow, practically with the examples here, you test the
difference between looking up a function and doing exit in native
kamailio.cfg and lua script, which is really marginal comparing
with the rest of configuration file in a usual production
deployment. Have you tested with a more complex set of
actions/functions?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 12.11.19 17:36, GG GG wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAO=zBEfasXaXaFT96a1UeezeyOwuVeoXVsw4=C8EfbZafcUr9Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi!
<div><br>
<div>I just made a simple test performance between native
script and kemi/lua with the event_route[core:msg-received]
callback.</div>
</div>
<div><br>
</div>
<div># lua script children=1 cpu.process=100%</div>
<div>function ksr_core_received()<br>
</div>
<div> exit;</div>
<div>end</div>
<div><br>
</div>
<div># native script children=1 cpu.process=70%</div>
<div>event_route[core:msg-received] {</div>
<div> exit;</div>
<div>}<br>
</div>
<div><br>
</div>
<div># tested with udp 5060, 1000 Mbits/sec</div>
<div>iperf -c 127.0.0.1 -p 5060 -u -b1000m</div>
<div><br>
</div>
<div>I don't know if it's normal and what we should expect from
kemi, but I would like to share this with you. Maybe someone
could confirm the performance difference.</div>
<div><br>
</div>
<div>Have a good day !</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>