Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
inoas committed Feb 28, 2024
1 parent 25a3cf0 commit d03388b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/glychee/configuration.gleam
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
//// Optional configuration of Benchee.
////
//// Configuration is stored in ETS.

/// For details see [Benchee docs' configuration chapter](https://hexdocs.pm/benchee/Benchee.Configuration.html#t:user_configuration/0).
pub type BencheeConfigurationKey {
MemoryTime
Parallel
Expand All @@ -6,12 +11,18 @@ pub type BencheeConfigurationKey {
Warmup
}

/// Configuration values are all positive integers.
///
pub type BencheeConfigurationValue =
Int

/// Initialize the ETS configuration table.
///
@external(erlang, "Elixir.GlycheeBenchee", "initialize_configuration")
pub fn initialize() -> Nil

/// Set a config pair.
///
@external(erlang, "Elixir.GlycheeBenchee", "set_configuration_pair")
pub fn set_pair(
key configuration_key: BencheeConfigurationKey,
Expand Down

0 comments on commit d03388b

Please sign in to comment.