package bonsai

  1. Overview
  2. Docs
A library for building dynamic webapps, using Js_of_ocaml

Install

Dune Dependency

Authors

Maintainers

Sources

bonsai-v0.16.0.tar.gz
sha256=1d68aab713659951eba5b85f21d6f9382e0efa8579a02c3be65d9071c6e86303

doc/bonsai.bench/Bonsai_bench/Interaction/index.html

Module Bonsai_bench.InteractionSource

Sourcetype 'action t

A 'action Interaction.t represents an interaction that occurs with a Component whose action type is 'action.

Sourceval change_input : 'a Bonsai.Var.t -> 'a -> _ t

change_input sets the given Var.t to the supplied value.

Sourceval inject : 'action -> 'action t

inject calls the inject_action function for the component being benchmarked with the supplied action.

Sourceval advance_clock_by : Core.Time_ns.Span.t -> _ t

advance_clock_by advances the current clock by the supplied amount. Note that the clock is not reset between benchmark runs.

Sourceval stabilize : _ t

stabilize forces a stabilization of the incremental graph for the component being benchmarked.

Sourceval reset_model : _ t

reset_model resets the benchmarked component's model back to the value it was at the beginning of the benchmark.

Sourceval profile : name:string -> _ t

profile indicates that the profile function below should print a snapshot of the time spent in each part of your computation since the previous snapshot.

Note: profiling interactions are filtered out in benchmark runs, so you needn't worry about

Sourceval many : 'action t list -> 'action t

many is used to create lists of interactions all at once. Interactions created this way will get flattened prior to benchmark runtime, so that there isn't performance cost to using the constructor.

Sourceval many_with_stabilizations : 'action t list -> 'action t

many_with_stabilizations is similar to many, but intersperses stabilizes in the supplied list of actions.

OCaml

Innovation. Community. Security.