Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
> lein with-profile 1.7:1.8:1517 test
Performing task 'test' with profile(s): '1.7'
lein test tuple-benchmark.core-test
*** clojure-version {:major 1, :minor 7, :incremental 0, :qualifier nil}
(conj v 5) 32.262823 ns 0.809081 ns
(assoc v 1 3) 22.337496 ns 0.749503 ns
(assoc {} :v1 v :v2 v :v3 v) 213.185788 ns 11.127241 ns
(subvec v 1 3) 18.584434 ns 0.897182 ns
[x y z] 17.703774 ns 0.465559 ns
[[[x y z] y z] y z] 37.763309 ns 0.980042 ns
(let [[x y z] v]) 13.592120 ns 0.392719 ns
(peek v) 8.463549 ns 0.240661 ns
(pop v) 19.763282 ns 0.636060 ns
(seq v) 18.955316 ns 0.578091 ns
(rseq v) 9.396755 ns 0.226506 ns
(count v) 10.038264 ns 0.520717 ns
(reduce + 0 v) 57.843780 ns 1.734702 ns
(reduce + v) 54.303642 ns 0.975025 ns
(mapv inc v) 174.945337 ns 7.361015 ns
(into [0] v) 169.070831 ns 5.136007 ns
(hash [[[x y z] y z] y z]) 333.439465 ns 8.684557 ns
(hash [x y z]) 132.924726 ns 5.232354 ns
(= v v2) 75.354829 ns 1.485907 ns
Ran 1 tests containing 0 assertions.
0 failures, 0 errors.
Performing task 'test' with profile(s): '1.8'
lein test tuple-benchmark.core-test
*** clojure-version {:major 1, :minor 8, :incremental 0, :qualifier "alpha2"}
(conj v 5) 9.800342 ns 0.267534 ns
(assoc v 1 3) 59.376276 ns 1.914762 ns
(assoc {} :v1 v :v2 v :v3 v) 209.796573 ns 4.257259 ns
(subvec v 1 3) 17.821253 ns 0.549979 ns
[x y z] 12.250084 ns 0.286451 ns
[[[x y z] y z] y z] 23.565629 ns 0.416782 ns
(let [[x y z] v]) 42.596718 ns 2.010898 ns
(peek v) 6.486484 ns 0.187166 ns
(pop v) 62.053688 ns 2.545769 ns
(seq v) 19.768112 ns 0.724736 ns
(rseq v) 9.259286 ns 0.231848 ns
(count v) 10.031152 ns 0.342696 ns
(reduce + 0 v) 114.728339 ns 3.548545 ns
(reduce + v) 103.847116 ns 4.247034 ns
(mapv inc v) 264.520594 ns 2.942003 ns
(into [0] v) 229.188383 ns 5.367533 ns
(hash [[[x y z] y z] y z]) 303.566653 ns 11.436839 ns
(hash [x y z]) 109.436599 ns 4.480960 ns
(= v v2) 77.404293 ns 2.254155 ns
Ran 1 tests containing 0 assertions.
0 failures, 0 errors.
Performing task 'test' with profile(s): '1517'
lein test tuple-benchmark.core-test
*** clojure-version {:major 1, :minor 8, :incremental 0, :qualifier "temp"}
(conj v 5) 9.468520 ns 0.373861 ns
(assoc v 1 3) 15.701951 ns 2.060905 ns
(assoc {} :v1 v :v2 v :v3 v) 209.675219 ns 6.734019 ns
(subvec v 1 3) 17.509083 ns 0.627878 ns
[x y z] 11.566258 ns 0.332857 ns
[[[x y z] y z] y z] 25.396835 ns 3.014893 ns
(let [[x y z] v]) 19.128872 ns 1.160346 ns
(peek v) 6.674105 ns 0.300464 ns
(pop v) 9.534398 ns 0.373213 ns
(seq v) 22.810905 ns 1.076795 ns
(rseq v) 9.477305 ns 0.504623 ns
(count v) 10.061138 ns 0.375454 ns
(reduce + 0 v) 56.986538 ns 1.260409 ns
(reduce + v) 49.916272 ns 2.823882 ns
(mapv inc v) 85.490668 ns 1.839115 ns
(into [0] v) 51.884185 ns 2.143786 ns
(hash [[[x y z] y z] y z]) 269.879508 ns 6.206909 ns
(hash [x y z]) 117.966630 ns 3.312946 ns
(= v v2) 60.693221 ns 1.707337 ns
Ran 1 tests containing 0 assertions.
0 failures, 0 errors.
zach@xanadu:~/clj/tmp/tuple-benchmark [ ]
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment