Subject: Re: Lisp backend protocol
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 05 Apr 2006 20:34:25 -0500
Newsgroups: comp.lang.lisp
Message-ID: <Af-dnQ_AsY687anZnZ2dnUVZ_tGdnZ2d@speakeasy.net>
Ari Johnson  <iamtheari@gmail.com> wrote:
+---------------
| (For the record, the fastest to run "sbcl --eval '(quit)'" was 0.066.)
+---------------

Don't forget to include -- or rather, *exclude*!! -- any default
user (or other) init files you might be including. E.g. note the
difference in these two times (and why!!):

    % time cmucl -quiet -eval '(quit)'
    ; Loading #p"/u/rpw3/.cmucl-init".
    ;; Loading #p"/u/lisp/contrib/cclan/asdf/asdf.x86f".
    ;; Loading #p"/u/lisp/contrib/lib/pg.x86f".
    0.162u 0.030s 0:00.20 95.0%     114+2277k 0+0io 0pf+0w   # 0.192 total
    % time cmucl -quiet -eval '(quit)' -noinit
    0.014u 0.000s 0:00.01 100.0%    168+3436k 0+0io 0pf+0w
    % 

When I'm doing "scripting" with CMUCL, I'm very careful to avoid
including my init file, so simple scripts like this one run fast:

    % time keto 8 4 14
    grams: protein 8  carb 4  fat 14
    ketogenic ratio: 1.674897
    total calories: 174
    0.022u 0.000s 0:00.02 100.0%    126+2576k 0+0io 0pf+0w
    % 


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607