[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About 'futures'
From: |
Marius Vollmer |
Subject: |
Re: About 'futures' |
Date: |
Wed, 09 Mar 2005 20:02:39 +0100 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Marius Vollmer <address@hidden> writes:
> (I will also try to benchmark them, but there is a bug right now that
> prevents me from using a huge number of threads... (that bug is not
> related to futures))
Oooookaaay, after fixing a couple of nice bugs (gdb is really good
with threads these days, I hadn't expected that), I now get these
results:
$ (time (do ((i 0 (1+ i))) ((= i 100000)) (join-thread (begin-thread #t))))
clock utime stime cutime cstime gctime
21.00 18.61 2.23 0.00 0.00 12.50
$ (time (do ((i 0 (1+ i))) ((= i 100000)) (future-ref (future #t))))
clock utime stime cutime cstime gctime
10.51 9.72 0.73 0.00 0.00 7.45
So futures are clearly faster than threads (as expected). Nice!