Skip to content

Commit aa588b1

Browse files
committed
Set minimal concurrency value for a register workload
1 parent 110e7d4 commit aa588b1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/tarantool/runner.clj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
[sets :as sets]
2525
[counter :as counter]]))
2626

27+
(def minimal-concurrency
28+
10)
29+
2730
(def workloads
2831
"A map of workload names to functions that can take opts and construct
2932
workloads.
@@ -47,7 +50,6 @@
4750
;:monotonic monotonic/workload
4851
;:multimonotonic multimonotonic/workload
4952
;:pages pages/workload
50-
:none (fn [_] tests/noop-test)
5153
:register register/workload})
5254

5355
(def standard-workloads
@@ -56,7 +58,7 @@
5658

5759
(def workloads-expected-to-pass
5860
"A collection of workload names which we expect should actually pass."
59-
(remove #{:register :counter-dec} standard-workloads))
61+
(remove #{:counter-dec} standard-workloads))
6062

6163
(def workload-options
6264
"For each workload, a map of workload options to all the values that option
@@ -161,6 +163,10 @@
161163
:engine (:engine opts)
162164
:mvcc (:mvcc opts)
163165
:pure-generators true
166+
:concurrency (if (and (< (:concurrency opts) minimal-concurrency)
167+
(= (:workload opts) :register))
168+
10
169+
(:concurrency opts))
164170
:generator gen
165171
:checker (checker/compose {:perf (checker/perf)
166172
:clock-skew (checker/clock-plot)

0 commit comments

Comments
 (0)