Skip to content

Instantly share code, notes, and snippets.

@timvisher
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timvisher/8e9da8d92fee8cdba482 to your computer and use it in GitHub Desktop.
Save timvisher/8e9da8d92fee8cdba482 to your computer and use it in GitHub Desktop.
(defn -main [& args]
(println "ohai")
(bench (rand-int 5)))
---
> (bench (rand-int 5))
WARNING: Final GC required 2.218566677645771 % of runtime
Evaluation count : 507814320 in 60 samples of 8463572 calls.
Execution time mean : 45.035156 ns
Execution time std-deviation : 26.410301 ns
Execution time lower quantile : 31.999243 ns ( 2.5%)
Execution time upper quantile : 127.080780 ns (97.5%)
Overhead used : 1.923271 ns
Found 10 outliers in 60 samples (16.6667 %)
low-severe 10 (16.6667 %)
Variance from outliers : 98.2601 % Variance is severely inflated by outliers
nil
---
$ java -jar test.jar
ohai
Evaluation count : 1747481100 in 60 samples of 29124685 calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment