Liking cljdoc? Tell your friends :D
Clojure only.

lite.workload.set

The :set workload: add distinct elements, then read them all back.

The lightest workload -- it asks nothing of the target beyond adds and a read, and catches lost writes and phantom elements.

Handler contract

:add value is one element -> add it to the collection; return normally :read value is nil -> return the whole current collection

The shape matters: a long run of adds, then a single final read. The checker compares that read against the adds it acknowledged.

The `:set` workload: add distinct elements, then read them all back.

The lightest workload -- it asks nothing of the target beyond adds and a
read, and catches lost writes and phantom elements.

## Handler contract

  :add   value is one element -> add it to the collection; return normally
  :read  value is nil        -> return the whole current collection

The shape matters: a long run of adds, then a single final read. The checker
compares that read against the adds it acknowledged.
raw docstring

addsclj

(adds)

An unbounded stream of adds of distinct elements.

An unbounded stream of adds of distinct elements.
sourceraw docstring

workloadclj

(workload {:keys [op-limit] :or {op-limit 200}})

Options:

:op-limit How many adds to attempt (default 200), or false for as many as the run has time for.

Options:

:op-limit  How many adds to attempt (default 200), or false for as many
           as the run has time for.
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