We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff59e76 commit 1fa173aCopy full SHA for 1fa173a
benchmark/cljs/benchmark_runner.cljs
@@ -40,6 +40,13 @@
40
(simple-benchmark [coll "foobar"] (nth coll 2) 1000000)
41
(println)
42
43
+(defprotocol IFoo (foo [x]))
44
+
45
+(println ";;; cloning & specify")
46
+(simple-benchmark [coll [1 2 3]] (clone coll) 1000000)
47
+(simple-benchmark [coll [1 2 3]] (specify coll IFoo (foo [_] :bar)) 1000000)
48
+(println)
49
50
(println ";;; list ops")
51
(simple-benchmark [coll (list 1 2 3)] (first coll) 1000000)
52
(simple-benchmark [coll (list 1 2 3)] (-first coll) 1000000)
0 commit comments