bonsai
-
bonsai
-
-
bonsai.bench
-
bonsai.example_chat_open_source_native
-
bonsai.example_chat_open_source_native_common
-
-
bonsai.extra
-
-
bonsai.focus_ring
-
bonsai.protocol
-
bonsai.tailwind_colors
-
bonsai.test
-
bonsai.test.dot
-
bonsai.web_test
-
bonsai.web_ui_common_components
-
bonsai.web_ui_drag_and_drop
-
bonsai.web_ui_element_size_hooks
-
bonsai.web_ui_file
-
bonsai.web_ui_file_from_web_file
-
bonsai.web_ui_form
-
-
bonsai.web_ui_freeform_multiselect
-
bonsai.web_ui_multi_select
-
-
bonsai.web_ui_query_box
-
bonsai.web_ui_reorderable_list
-
bonsai.web_ui_typeahead
Library
Module
Module type
Parameter
Class
Class type
A 'action Interaction.t
represents an interaction that occurs with a Component
whose action type is 'action
.
val change_input : 'a Bonsai.Var.t -> 'a -> _ t
change_input
sets the given Var.t
to the supplied value.
val inject : 'action -> 'action t
inject
calls the inject_action
function for the component being benchmarked with the supplied action.
val 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.
val stabilize : _ t
stabilize
forces a stabilization of the incremental graph for the component being benchmarked.
val reset_model : _ t
reset_model
resets the benchmarked component's model back to the value it was at the beginning of the benchmark.
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.