Liking cljdoc? Tell your friends :D

benchy.core

Composable, database-independent benchmark tasks.

Composable, database-independent benchmark tasks.
raw docstring

compile-benchmarkclj

(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.
sourceraw docstring

current-timestampclj

(current-timestamp worker)
source

current-timestamp-msclj

(current-timestamp-ms worker)
source

get-system-infoclj

(get-system-info)
source

inc-count!clj

(inc-count! !counter)
source

log-reportclj

(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.
sourceraw docstring

random-boolclj

(random-bool worker)
source

random-nthclj

(random-nth worker coll)
source

random-seqclj

(random-seq worker opts f & args)
source

random-strclj

(random-str worker)
(random-str worker min-len max-len)
source

rngclj

(rng worker)
source

run-benchmarkclj

(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.
sourceraw docstring

sample-flatclj

(sample-flat worker !counter)
source

sample-gaussianclj

(sample-gaussian worker !counter)
source

set-count!clj

(set-count! !counter v)
source

weighted-sample-fnclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close