Require Common Lisp Timing Function That Can Write to a Stream

Viewed 74

I have always used the Common Lisp time macro for checking the speed of an implementation. However, I would like to be able to write the timing output to a stream (file) so that I can do some statistical analysis on it or to filter it in some way.

So far I have not found any commands or libraries that make this possible for me. I would greatly appreciate assistance with this.

1 Answers
(with-open-file (*trace-output* "/tmp/time.text"
                 :direction :output)
  (time (sleep 1)))
Related