Created
October 26, 2017 18:58
Star
You must be signed in to star a gist
Benchmark for test.check's ClojureScript random number generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[clojure.test.check.random :as tr]) | |
(simple-benchmark [sr (tr/next-rng) times 2000] | |
(->> (iterate #(first (tr/split %)) sr) | |
(take times) | |
(map tr/rand-long) | |
doall) | |
100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment