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.
: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.
(adds)An unbounded stream of adds of distinct elements.
An unbounded stream of adds of distinct elements.
(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.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 |