[erlang-questions] enif_consume_timeslice performances

Caragea Silviu silviu.cpp@REDACTED
Thu Jan 12 16:30:30 CET 2017


I'm working on a TLS/DTLS library in top of BoringSSL/OpenSSL and gen_tcp.
My goal is to have a interface compatible as much as I can with erlang ssl

Project is located here: https://github.com/silviucpp/erltls and overall so
far I have better performances results than ssl module. around 33 % on OSX
and 18 % on ubuntu when using ssl as client for sending the requests (when
using erltls as client boost is even more  for example on mac around 60 %)

To measure the performances I'm using :

During testing I observed that when using enif_consume_timeslice I have a
drop off in performances for around 15 %. It's calling this method too
heavy ? or the processes are suspended/resumed to many times and this
affects the results?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170112/c02d776d/attachment.htm>

More information about the erlang-questions mailing list