<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">The parallel implementation of Factorial algorithm has been studies for a while.</div><div class=""><br class=""></div><div class=""><a href="http://swvist.github.io/09-13-2012-naive_parallel_factorial_in_erlang.html" class="">http://swvist.github.io/09-13-2012-naive_parallel_factorial_in_erlang.html</a></div><div class=""><a href="https://stackoverflow.com/questions/34978236/parallelizing-factorial-calculation" class="">https://stackoverflow.com/questions/34978236/parallelizing-factorial-calculation</a></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">This algorithm would not give you a representative benchmark vs Python. I am afraid that any math problem would be weaker in Erlang unless you implement it as NIF. You need to design benchmark strategy according to your use-cases. </div><div class=""><br class=""></div><div class="">Best Regards, </div><div class="">Dmitry</div><br class=""><div><blockquote type="cite" class=""><div class="">On 9 Nov 2017, at 20.17, Iván Carmenates <<a href="mailto:ivancarmenates@gmail.com" class="">ivancarmenates@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_quote"><div dir="ltr" class=""><div class=""><div class="">Hi, I am trying to do a simple benchmark against python, and we decide to use factorial function to the test</div><div class=""><br class=""></div><div class="">fact(0)->1;</div><div class="">fact(N)->N*fact(N-1).</div><div class=""><br class=""></div><div class="">But I wonder if there is a way to implement this using a multicore approach.</div><div class=""><br class=""></div><div class="">Kindest regards,</div><div class="">Ivan.<br class=""></div></div></div>
</div><br class=""></div>
_______________________________________________<br class="">erlang-questions mailing list<br class=""><a href="mailto:erlang-questions@erlang.org" class="">erlang-questions@erlang.org</a><br class="">http://erlang.org/mailman/listinfo/erlang-questions<br class=""></div></blockquote></div><br class=""></body></html>