[erlang-questions] Message passing in Erlang is very slow with the -smp option.

Mikage Sawatari mikage@REDACTED
Fri Sep 28 08:39:44 CEST 2007


I found message passing becomes very slow when the -smp option is in
effect. I did a benchmark by passing messages circularly around several
processes. The performance became about 1/7 with the -smp option.

Is there any workaround for this? Or will this be improved in the future
of Erlang?

>> erl -noshell -eval 'ring_bench:start(1000,10000), halt().'
>>
> N = 1000, M = 10000; elapsed time = 1470 (1494) miliseconds
>
>
>> erl -smp -noshell -eval 'ring_bench:start(1000,10000), halt().'
>>
> N = 1000, M = 10000; elapsed time = 9810 (9826) miliseconds
>

The program I used can be found in the following blog:

> http://d.hatena.ne.jp/sumim/20070513/p1 (Japanese)
>

-- 
-----------------------------------------------------------------------
SAWATARI Mikage (SANO Taku)



More information about the erlang-questions mailing list