On the perils of benchmarking Erlang

erlangベンチマークをとる際に注意すべき点が上げられている。また、速度向上の手法が紹介されている。


なるべくエクスポートしない。

The more functions exported from a module, the less optimization potential.

インライン化。

Inlining is off by default. I doubt you'll ever see big speedups from this, but it's worth adding

  • compile(inline).

to modules that involve heavy computation.