Composable, database-independent benchmark tasks.
Composable, database-independent benchmark tasks.
(compile-benchmark {:keys [seed ->state] :or {seed 0} :as benchmark})Validate a benchmark map and return a reusable function of zero args or a context map. Every invocation creates fresh state, random generators, metrics, and executors.
Validate a benchmark map and return a reusable function of zero args or a context map. Every invocation creates fresh state, random generators, metrics, and executors.
(log-report worker event)Write a custom event to this run's optional JSON Lines report.
Write a custom event to this run's optional JSON Lines report.
(run-benchmark benchmark)(run-benchmark benchmark context)Run a benchmark with an optional caller-owned context map and return its result.
Run a benchmark with an optional caller-owned context map and return its result.
(weighted-sample-fn weighted-items)Aliased random sampler:
https://www.peterstefek.me/alias-method.html
Given a seq of [item weight] pairs, return a function who when given a Random will return an item according to the weight distribution.
Aliased random sampler: https://www.peterstefek.me/alias-method.html Given a seq of [item weight] pairs, return a function who when given a Random will return an item according to the weight distribution.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |