dollabs / pamela

Probabalistic Advanced Modeling and Execution Learning Architecture
Apache License 2.0
233 stars 13 forks source link

Issue 115 #118

Closed tmarble closed 7 years ago

tmarble commented 7 years ago

@dcerys yes. Because it's in "test" scope it will not end up in the final jar. However this way we can use it on the REPL, for example:

pamela.cli> (use 'criterium.core)
pamela.cli> (defn dummy []
              (dotimes [i 3]
                (do
                  (println "before" i)
                  (Thread/sleep 1000)
                  (println "after" i))))
pamela.cli> (criterium.core/with-progress-reporting (criterium.core/bench (dummy) :verbose :samples 3))