[erlang-questions] Benchmarking Erlang: Deathmatch of gb_trees, dict, ets, mnesia ... and registered names
Serge Aleynikov
saleyn@REDACTED
Thu Oct 9 14:03:28 CEST 2008
This doesn't make sense as calling is_process_alive/1 on a non-local Pid
would throw an exception (meaning that all your pids are on the local
node since you are not getting one).
Joel Reymont wrote:
> lookup(N) ->
> P = global:whereis_name(N),
> true = is_process_alive(P),
> lookup(N - 1).
>
> This should be enough for error checking, right?
>
> (1@REDACTED)4> c(map7).
> {ok,map7}
> (1@REDACTED)5> map7:test(100000).
> Populate: 265.2531
> Lookup: 0.0831
> ok
>
> The timings are not much off!
>
> --
> wagerlabs.com
>
>
>
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
More information about the erlang-questions
mailing list