We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f3d4f commit 29e997eCopy full SHA for 29e997e
1 file changed
dev/simple_stress_test.clj
@@ -47,10 +47,13 @@
47
fr-handlers (when convert-list? custom-read-handlers)]
48
(a/info (merge {:event :starting-stress-test} argmap))
49
(let [work-chan (async/chan 1)
50
- timeout-chan (async/timeout (* 1000 60 20))]
+ timeout-chan (async/timeout (* 1000 60 20))
51
+ ; avoid submillisecond measurement
52
+ struct-count (* 1000 (if (< struct-size 9)
53
+ 100 1))]
54
(loop [runs 0
55
proc-time 0]
- (let [structs (repeatedly 1000 #(gen-struct-fn struct-size))
56
+ (let [structs (repeatedly struct-count #(gen-struct-fn struct-size))
57
; put generated structs fressianed into the work channel as a single coll
58
_ (async/put! work-chan (into [] (for [st structs] (fressian st))))
59
[val port] (async/alts!! [work-chan timeout-chan])]
0 commit comments