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