From 0c0ab612c04760329475281ce0a0289b2ab965e7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 3 Dec 2021 09:36:39 +0100 Subject: [PATCH] :paperclip: Minor fixes to previous commits. --- common/src/app/common/perf.cljc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/app/common/perf.cljc b/common/src/app/common/perf.cljc index 454ab3f6b4..be2145403d 100644 --- a/common/src/app/common/perf.cljc +++ b/common/src/app/common/perf.cljc @@ -1,5 +1,6 @@ (ns app.common.perf (:require + [app.common.math :as mth] [app.common.uuid :as uuid])) (defn timestamp [] @@ -25,7 +26,7 @@ "A helper function for perform a unitari benchmark on JS/CLJS. It uses browser native api so it only suitable to be executed in browser." - [& {:keys [f warmup iterations name] + [& {:keys [f iterations name] :or {iterations 10000}}] (let [end-mark (str name ":end")] (println "=> benchmarking:" name)