[erlang-questions] Benchmarking Erlang: Deathmatch of gb_trees, dict, ets, mnesia ... and registered names
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?
> ()4> c(map7).
> ()5> map7:test(100000).
> Populate: 265.2531
> Lookup: 0.0831
> The timings are not much off!
> erlang-questions mailing list
More information about the erlang-questions