-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjmh.edn
61 lines (50 loc) · 1.72 KB
/
jmh.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{:benchmarks
[{:name :count
:fn [couplet.core-benchmark/reducing-codepoints-count
couplet.core-benchmark/transducing-codepoints-count
couplet.core-benchmark/lazy-codepoints-count
couplet.core-benchmark/naive-lazy-codepoints-count
couplet.core-benchmark/chunked-lazy-codepoints-count
couplet.core-benchmark/folding-codepoints-count]
:args [:string]}
{:name :char-count
:fn [couplet.core-benchmark/clojure-char-count
couplet.core-benchmark/clojure-lazy-char-count]
:args [:string]}
{:name :jdk-count
:fn [couplet.core-benchmark/jdk-char-sequence-chars-count
couplet.core-benchmark/jdk-char-sequence-code-points-count]
:args [:string]}
{:name :reduce-frequencies
:fn couplet.core-benchmark/reduce-frequencies
:args [:string]}
{:name :fold-frequencies
:fn couplet.core-benchmark/fold-frequencies
:args [:param/partition-size :state/string]}
{:name :reducers
:fn [couplet.core-benchmark/reducer-foldcat
couplet.core-benchmark/reducer-fold-combining
couplet.core-benchmark/reducer-sequential]
:args [:string]}
{:name :to-str
:fn [couplet.core-benchmark/to-str
couplet.core-benchmark/transducing-to-str]
:args [:codepoints]}
{:name :apply-str
:fn [couplet.core-benchmark/clojure-apply-str
couplet.core-benchmark/clojure-apply-str-with-filter]
:args [:chars]}]
:states
{:string
{:fn couplet.core-benchmark/generate-string
:args [:generator :length]}
:codepoints
{:fn (partial into [] (couplet.core/codepoints))
:args [:state/string]}
:chars
{:fn (partial into [])
:args [:state/string]}}
:params
{:generator [gen-text gen-ascii]
:length 1e6
:partition-size [512 8192 131072]}}