Oops, forgot one answer.
On Fri, May 11, 2012 at 08:48:15PM +0700, Henrik Sarvell wrote:
> Maybe it's just easier to print the results and capture that? If so
> then maybe it's even easier/more efficient to skip this completely and
> simply call an executable or does native have lower overhead?
I would estimate that calling an executable has at least a 1000-fold
: (bench (do 1000 (call "/bin/true")))
: (bench (do 1000000 (native "pcre/main.so" "tst" NIL '(X (16 S S)))))