[erlang-questions] Erlang arithmetics
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?
> z() ->
> T1 = erlang:now(),
> V = z(100000, 0),
> T2 = erlang:now(),
> put(v, V),
> io:format("S: ~p~n", [timer:now_diff(T2, T1)]),
> z(0, 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