<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Sorry, Erlang uses 27bits for integers
before using bignums. Not sure where that is documented.<br>
<br>
On 09/16/2015 01:57 PM, Michael Truog wrote:<br>
</div>
<blockquote cite="mid:55F9D79F.70406@gmail.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">I have been using the source code at
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://github.com/okeuday/erlbench">https://github.com/okeuday/erlbench</a>
for basic micro-benchmarks, mainly for data structure
comparisons. The code is a bit basic, but is able to make sure
the iterations are large enough and are repeated often enough,
to avoid some GC variation that can affect results. Then it may
be possible to make conclusions based on the hardware used for
testing. The concurrency testing would require tests be done in
parallel to determine how the timing result is affected, but a
basic run of low-level operations would provide a starting
point.<br>
<br>
As mentioned elsewhere, making sure you are testing bignums
(anything over 26bits in Erlang, likely different in Python) is
important, and other details that avoid erroneous conclusions.
The influence of concurrency is more important in Erlang, due to
the support provided by Erlang, but latency testing of
concurrency is simpler with higher-level connections to the
Erlang server, rather than low-level testing that is unlikely to
provide realistic GC usage. The hardware being used for the
concurrency testing will then provide more variation and it is
necessary to make sure the hardware is not being throttled due
to excessive heat to avoid skewing the results.<br>
<br>
On 09/16/2015 08:03 AM, Eric des Courtis wrote:<br>
</div>
<blockquote
cite="mid:CAPLPjAYJdmFsiZrMORwfPhjXBEC2Ho2_hHgc1hA+udcy0uK8MQ@mail.gmail.com"
type="cite">
<div dir="ltr">What is the cost model of all operations in
Erlang 18?
<div><br>
</div>
<div>For example Python has this cost model <a
moz-do-not-send="true"
href="http://scripts.mit.edu/%7E6.006/fall07/wiki/index.php?title=Python_Cost_Model">http://scripts.mit.edu/~6.006/fall07/wiki/index.php?title=Python_Cost_Model</a> .</div>
<div><br>
</div>
<div>I either want a link to a single source for this
information or I would like to crowd source the information
here now.</div>
<div><br>
</div>
<div>Thanks for your cooperation.</div>
<div><br>
</div>
<div>Eric des Courtis</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</blockquote>
<br>
</body>
</html>