1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Ocaml Benchmark module</title>
<meta content="Christophe Troestler" name="author">
<meta content="Module to benchmark running times of code" name="description"></head><body style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" alink="#ff6600" link="#e0991d" vlink="#999999">
<br>
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr>
<td colspan="2" rowspan="1" style="vertical-align: top; text-align: center; white-space: nowrap;"><img style="width: 759px; height: 154px;" alt="OCaml Benchmark" src="OCamlBenchmark.jpg"><br>
</td>
</tr>
<tr>
<!-- <td style="vertical-align: top; width: 20px;"><a
href="http://ocaml-benchmark.sourceforge.net/"><img
style="border: 0px solid ; width: 84px; height: 46px;"
alt="Home" src="Home.jpg"></a><br> -->
<td style="vertical-align: top; width: 20px;"><a href="https://forge.ocamlcore.org/projects/ocaml-benchmark/"><img style="border: 0px solid ; width: 128px; height: 46px;" alt="Summary" src="Summary.jpg"></a><br>
<a href="doc/index.html"><img style="border: 0px solid ; width: 190px; height: 46px;" alt="Documentation" src="Documentation.jpg"></a><br>
<span style="font-family: helvetica,arial,sans-serif;"><a href="https://forge.ocamlcore.org/frs/?group_id=197"><img style="border: 0px solid ; width: 129px; height: 46px;" alt="Download" src="Download.jpg"></a><br>
<a href="LICENSE"><img style="border: 0px solid ; width: 101px; height: 46px;" alt="License" src="License.jpg"></a></span>
</td>
<td style="vertical-align: top;">
<p>
OCaml Benchmark is a small module to benchmark running times
of code. It supersedes an earlier version
by Doug Bagley.
A typical use looks like this:<br><br>
<code class="code">
<span style="color: rgb(255, 0, 0); font-weight: bold;" class="keyword">open</span>
<span style="color: rgb(51, 102, 255);" class="constructor">Benchmark</span><br>
<span style="color: rgb(255, 0, 0); font-weight: bold;" class="keyword">let</span>
res = throughputN 8 [(<span style="color: rgb(204, 102, 0);" class="string">"foo"</span>, f, 1000000);<br>
(<span style="color: rgb(204, 102, 0);" class="string">"bar"</span>, g,
1000000);<br>
(<span style="color: rgb(204, 102, 0);" class="string">"baz"</span>, h,
1000000) ] <span style="color: rgb(255, 0, 0); font-weight: bold;" class="keyword">in</span><br>
print_newline();<br>
tabulate res<br>
<br>
</code>
For a complete description of the functions, see the
interface <a href="doc/Benchmark.html"><span style="font-family: courier new,courier,monospace;">Benchmark.mli</span></a>.
Some examples are also included in
the <a href="https://forge.ocamlcore.org/frs/?group_id=197">tarball</a>.
</p>
<p>
If you have questions, suggestions, bugs,... you can contact
me by
email: <a href="mailto:Christophe.Troestler@umons.ac.be?SUBJECT=OCaml%20Benchmark">Christophe.Troestler@umons.ac.be</a>.
The source code is maintained in a <a href="http://git-scm.com/" target="_blank">Git</a> repository stored on <a href="https://github.com/Chris00/ocaml-benchmark">Github</a>.
</p>
<p>The code is released under the GNU Lesser General Public
License (LGPL) with the same special exception as for the
OCaml standard library (see the
file <a href="LICENSE">LICENSE</a> for more
details).</p></td>
</tr>
</tbody>
</table>
</body></html>
|