Re: Strange result for clojure.core/time

2020-04-12 Thread Alan Thompson
I now feel like Homer Simpson. Doh! Alan On Sat, Apr 11, 2020 at 2:34 AM Paul Stadig wrote: > The output of `time` is in milliseconds and the output of > `with-timer-print` is in seconds. So to make them comparable: > `time` 0.01344 msec > `time` with eval 0.922536 msec > >

Re: Strange result for clojure.core/time

2020-04-11 Thread Paul Stadig
The output of `time` is in milliseconds and the output of `with-timer-print` is in seconds. So to make them comparable: `time` 0.01344 msec `time` with eval 0.922536 msec `with-timer-print` 0.048 msec `with-timer-print` with eval 1.041 msec The `with-timer-print` version is slower, and I suspect

Strange result for clojure.core/time

2020-04-10 Thread Alan Thompson
I was doing some macro work and was curious about the cost of an inline `eval` vs compiled code. I tried to time it with `clojure.core/time` and got results I can't explain: (println :eval-time) (time (do (println (eval (quote (+ 40 0 (println (eval (quote (+ 40 1 (println