Clojure 1.8 tuple benchmarks
 Share
The version of the browser you are using is no longer supported. Please upgrade to a supported browser.Dismiss

 
View only
 
 
ABCDEFGHIJKLMNOPQRSTUVWX
1
1.7.01.8.0-snapshot-b8607d58701.8.0 w/ clj-1517
2
nsnsRationsRatio
3
(conj v 5)80250.31360.45
4
(assoc v 1 3)521242.38300.58
5
(assoc {} :v1 v :v2 v :v3 v)
4074371.075741.41
6
(subvec v 1 3)34451.32341
7
[x y z]40350.88280.7
8
[[[x y z] y z] y z]104950.91560.54
9
(let [[x y z] v])18613.39231.28
10
(peek v)12141.17151.25
11
(pop v)491052.14370.76
12
(seq v)38330.87681.79
13
(rseq v)24311.29361.5
14
(count v)16201.25201.25
15
(reduce + 0 v)1032142.08780.76
16
(reduce + v)8517467
17
(mapv inc v)3484971.432160.62
18
(into [0] v)4916451.31940.19
19
(hash [[[x y z] y z] y z])5795720.996301.09
20
(hash [x y z])2741500.552370.86
21
(= v v2)102740.731291.26
22
Total285633511.1724080.84
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Loading...
 
 
 
ptaoussanis numbers
ztellman numbers