Skip to content

Commit d03388b

Browse files
committed
docs
1 parent 25a3cf0 commit d03388b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/glychee/configuration.gleam

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
//// Optional configuration of Benchee.
2+
////
3+
//// Configuration is stored in ETS.
4+
5+
/// For details see [Benchee docs' configuration chapter](https://hexdocs.pm/benchee/Benchee.Configuration.html#t:user_configuration/0).
16
pub type BencheeConfigurationKey {
27
MemoryTime
38
Parallel
@@ -6,12 +11,18 @@ pub type BencheeConfigurationKey {
611
Warmup
712
}
813

14+
/// Configuration values are all positive integers.
15+
///
916
pub type BencheeConfigurationValue =
1017
Int
1118

19+
/// Initialize the ETS configuration table.
20+
///
1221
@external(erlang, "Elixir.GlycheeBenchee", "initialize_configuration")
1322
pub fn initialize() -> Nil
1423

24+
/// Set a config pair.
25+
///
1526
@external(erlang, "Elixir.GlycheeBenchee", "set_configuration_pair")
1627
pub fn set_pair(
1728
key configuration_key: BencheeConfigurationKey,

0 commit comments

Comments
 (0)