Workloads: what ops to run, and what counts as correct.
A workload is a map:
:generator the op stream :final-generator optional; ops to run once the op stream is done and any time limit has expired, such as a final read :checker the verdict over the resulting history :wrap-client optional (fn [client] client'), for workloads whose ops need translating before the user's handler sees them :test-opts optional extra test-map entries the workload's own generator or checker reads (bank's accounts and starting total) :concurrency how many workers this workload wants, if it cares
Each workload also documents the handler contract it expects -- which :f
values arrive, and what the handler should return -- in its own namespace.
Workloads know nothing about target-type or faults; those are separate axes.
Workloads: what ops to run, and what counts as correct.
A workload is a map:
:generator the op stream
:final-generator optional; ops to run once the op stream is done and any
time limit has expired, such as a final read
:checker the verdict over the resulting history
:wrap-client optional (fn [client] client'), for workloads whose ops need
translating before the user's handler sees them
:test-opts optional extra test-map entries the workload's own generator
or checker reads (bank's accounts and starting total)
:concurrency how many workers this workload wants, if it cares
Each workload also documents the handler contract it expects -- which `:f`
values arrive, and what the handler should return -- in its own namespace.
Workloads know nothing about target-type or faults; those are separate axes.(build workload-name opts)Constructs the named workload.
Constructs the named workload.
Workload name -> (fn [opts] workload-map).
Workload name -> (fn [opts] workload-map).
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 |