<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>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 module. <br><br></div>Project is located here: <a href="https://github.com/silviucpp/erltls">https://github.com/silviucpp/erltls</a> 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 %)<br><br></div>To measure the performances I'm using : <a href="https://github.com/silviucpp/tls_bench">https://github.com/silviucpp/tls_bench</a><br><br></div>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?<br><br></div>SilviuĀ  <br></div>