[erlang-questions] Feedback for my first non-trivial Erlang program

zxq9 zxq9@REDACTED
Sun Dec 20 04:45:49 CET 2015

On 2015年12月19日 土曜日 15:54:22 you wrote:
> Look again :-) Where does the time go?
> Times/results for asc, desc, and para versions:
> - With printing: {{4,6765},{488211,6765},{491135,{<0.44.0>,6765}}}
>   I.e. para only a little slower than desc. I don't doubt that para appears
> a bit faster in your environment.
> - Without printing: {{3,6765},{1233,6765},{71173,{<0.44.0>,6765}}}
> That's a clearer picture: The stupidly parallel version is plenty slower
> than the naïvely recursive version.

Haha! How silly of me to miss *that*!
How embarrassing.

Embarrassing as it is, though, its an excellent and obvious example of side-effects completely distorting an external measurement.


More information about the erlang-questions mailing list