Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Benchmark for test.check's ClojureScript random number generator
(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
You can’t perform that action at this time.