chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] String compression?


From: Graham Fawcett
Subject: Re: [Chicken-users] String compression?
Date: Thu, 21 Dec 2006 19:46:51 -0500

On 12/21/06, Zbigniew <address@hidden> wrote:
Number 2 thing is that gzip-string (on my system) does not take 0.888
seconds real-time to execute.  That's just what chicken reports.  If
you comment out the other tests and actually run the script from the
command line using 'time', it takes -substantially- longer: 7.9s!  I
expect this on OS X because it is notoriously slow at forking new
processes; it may be a lot faster on e.g. Linux.  However, the point
is, only the time for Chicken itself is being measured, not for gzip.

You're absolutely right, Zbigniew. Even on Linux, the real time for
gzip is much greater than I reported. (I'm not sure how I watched the
test run, and didn't pick up on that...)

1000 runs of gzip-string:
real    0m8.923s
user    0m4.500s
sys     0m4.600s

1000 runs of z3:compress-string:
real    0m14.548s
user    0m14.450s
sys     0m0.090s

Sorry everyone. Forking a gzip process is still clearly faster on
Linux (for me, at least), but not nearly by the margin I had
suggested.

Looking forward to the compress/decompress-the-whole-buffer routines, Felix :-)

Graham




reply via email to

[Prev in Thread] Current Thread [Next in Thread]