A |
add [Benchmark] |
Benchmark.add b1 b2 add Benchmark.t structure b1 to b2 .
|
L |
latency1 [Benchmark] |
Benchmark.latency1 ?min_cpu ?style ?fwidth ?fdigits n ?name f x
runs the function f with input x for n iterations, and
returns the results, which are also printed unless ~style is
Nil .
|
latencyN [Benchmark] |
Benchmark.latencyN ?min_cpu ?style ?fwidth ?fdigits n funs
runs each function in list funs for n iterations.
|
M |
make [Benchmark] |
Benchmark.make n create a new Benchmark.t structure with
current time values and n iterations.
|
merge [Benchmark] |
merge l1 l2 merges the two association lists of timings l1
and l2 into a single one, concatenating the timings for the same
names of l1 and l2 .
|
S |
sub [Benchmark] |
Benchmark.sub b1 b2 subtract Benchmark.t structure b2
from b1 .
|
T |
tabulate [Benchmark] |
|
throughput1 [Benchmark] |
Benchmark.throughput1 ?min_count ?style ?fwidth ?fdigits t ?name f x
runs one function f with input x for at least t seconds, and
returns the result, which is also printed unless ~style is
Nil .
|
throughputN [Benchmark] |
Benchmark.throughputN ?min_count ?style ?fwidth ?fdigits t
funs runs each function in list funs for at least t > 0
seconds.
|
to_string [Benchmark] |
Benchmark.to_string ?style ?fwidth ?fdigits b converts the
Benchmark.t structure to a formatted string.
|