[erlang-questions] Erlang arithmetics
Kenny Stone
kennethstone@REDACTED
Sun Oct 31 01:54:12 CEST 2010
If you're comparing node.js and erlang, it's probably for web services. It
seems to me that arithmetic is fairly pointless measure of comparison (and
something neither does that well as others have pointed out). Comparisons
that would interest me if I was reading your article: benchmarks for
handling many concurrent connections, availability of open source toolsets
for solving common web problems, ease of distributing or scaling.
On Sat, Oct 30, 2010 at 4:29 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
> Can this trivial code be optimized with HiPE?
>
>
> -module(a).
>
> -export([z/0]).
>
> z() ->
> T1 = erlang:now(),
> V = z(100000, 0),
> T2 = erlang:now(),
> put(v, V),
> io:format("S: ~p~n", [timer:now_diff(T2, T1)]),
> ok.
>
>
> z(0, S) ->
> S;
>
> z(N, S) when is_number(N) andalso is_number(S) ->
> z(N - 1, S*2 + 3).
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>
More information about the erlang-questions
mailing list