core: fix bench and ignore form, because they were buggy

This commit is contained in:
hellerve 2018-02-01 18:01:45 +01:00
parent 4c14cea5b0
commit 27a4a3edff
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
(defn ns-iter-inner [f n]
(let [start (get-time-elapsed)]
(do
(for [i 0 n] (ignore f))
(for [i 0 n] (ignore (f)))
(Double.- (get-time-elapsed) start))))
(defn print-bench-results [res total]

View File

@ -196,4 +196,4 @@
(list 'IO.println (list 'ref (build-str* forms))))
(defmacro ignore [form]
(let [_ form] ()))
(list 'let (array '_ form) (list)))