T
его же скорость от фазы луны зависит
Size: a a a
T
ST
T
ST
T
ST
ST
ST
T
ST
(transduce
(take 10001)
(constantly nil)
(iterate (fn [s] (do (identity s) (.concat ^String s " *"))) "*"))
(->> (iterate #(.concat ^String % " *") "*")
(transduce (comp (take 10000) (map identity))
(constantly nil)))
T
(transduce
(take 10001)
(constantly nil)
(iterate (fn [s] (do (identity s) (.concat ^String s " *"))) "*"))
(->> (iterate #(.concat ^String % " *") "*")
(transduce (comp (take 10000) (map identity))
(constantly nil)))
T
ST
(transduce
(take 10001)
(constantly nil)
(iterate (fn [s] (do (identity s) (.concat ^String s " *"))) "*"))
(->> (iterate #(.concat ^String % " *") "*")
(transduce (comp (take 10000) (map identity))
(constantly nil)))
T
T
ST
;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
(do (->> (iterate #(.concat ^String % " *") "*")
(transduce (comp (take 10000) (map identity))
(constantly nil)))
nil)
;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
)
Evaluation count : 42 in 6 samples of 7 calls.
Execution time mean : 21,694222 ms
Execution time std-deviation : 5,401123 ms
Execution time lower quantile : 15,950505 ms ( 2,5%)
Execution time upper quantile : 27,703639 ms (97,5%)
Overhead used : 9,195613 ns
;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
(transduce
(take 10001)
(constantly nil)
(iterate (fn [s] (do (identity s) (.concat ^String s " *"))) "*"))
;•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
)
Evaluation count : 42 in 6 samples of 7 calls.
Execution time mean : 21,973524 ms
Execution time std-deviation : 5,257730 ms
Execution time lower quantile : 16,050862 ms ( 2,5%)
Execution time upper quantile : 27,779134 ms (97,5%)
Overhead used : 9,195613 ns
(transduce (take 10001) (constantly nil) (iterate (fn [s] (do (identity s) (.concat s " *"))) "*"))
T
ST
T