Marius Vollmer <[EMAIL PROTECTED]> 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!


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to