Skip to content

Commit

Permalink
Update performance testing section
Browse files Browse the repository at this point in the history
rename bench to benchmark to clarify its purpose.
  • Loading branch information
practicalli-johnny committed Apr 16, 2020
1 parent b995eff commit d31c5d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ clojure -A:depstar -m hf.depstar.uberjar MyProject.jar

## Performance testing

* [:bench](https://github.com/hugoduncan/criterium/)
* [:benchmark](https://github.com/hugoduncan/criterium/)
Adhoc performance testing the the REPL

```
Expand Down
5 changes: 2 additions & 3 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -290,19 +290,18 @@
:main-opts ["-m" "uberdeps.uberjar"]}



;; Performance testing
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;; Benchmarking library for Clojure
;; https://github.com/hugoduncan/criterium/
;; clojure -A:rebel:bench
;; (require '[criterium.core :refer [bench quick-bench]]) ; require criterium
;; (bench (adhoc-expression)) ; timing of a self contained expression
;;
;; (require '[practicalli/namespace-name]) ; require project source code
;; (in-ns 'practicalli/namespace-name)
;; (quick-bench (project-function args))
:bench
:benchmark
{:extra-deps {criterium {:mvn/version "0.4.5"}}}


Expand Down

0 comments on commit d31c5d9

Please sign in to comment.