Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save spinningtopsofdoom/7fb7fbe4ae7de159922a79e6f3f3e730 to your computer and use it in GitHub Desktop.
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