OCaml Benchmark

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:

        open Benchmark
        let res = throughputN 8 [("foo", f, 1000000);
                                 ("bar", g, 1000000);
                                 ("baz", h, 1000000) ] in
        tabulate res

For a complete description of the functions, see the interface Benchmark.mli. Some examples are also included in the tarball.

If you have questions, suggestions, bugs,... you can contact me by email: chris_77@users.sourceforge.net. The source code is maintained under the bazaar distributed version control system and stored in the SF SVN repository. You can get it with bzr branch SF benchmark and submit your patches with bzr send SF --mail-to=chris_77@users.sourceforge.net where SF stands for https://ocaml-benchmark.svn.sourceforge.net/svnroot/ocaml-benchmark/trunk/.

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 LICENSE for more details).

Get OCaml Benchmark