From d31c5d9afd011d2bd6e9bf22b67447f2d5de9ed6 Mon Sep 17 00:00:00 2001 From: John Practicalli Stevenson Date: Thu, 16 Apr 2020 14:27:29 +0100 Subject: [PATCH] Update performance testing section rename bench to benchmark to clarify its purpose. --- README.md | 2 +- deps.edn | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d6454b5..31d4258 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/deps.edn b/deps.edn index 92a6f11..786c67c 100644 --- a/deps.edn +++ b/deps.edn @@ -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"}}}