From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.devel Subject: Re: About 'futures' Date: Wed, 09 Mar 2005 20:02:39 +0100 Message-ID: References: <66e540fe05030812526a7ccb6f@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110395241 12555 80.91.229.2 (9 Mar 2005 19:07:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2005 19:07:21 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Mar 09 20:07:21 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D96SJ-0006y8-BZ for guile-devel@m.gmane.org; Wed, 09 Mar 2005 20:02:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D96h2-00071f-CG for guile-devel@m.gmane.org; Wed, 09 Mar 2005 14:18:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D96gw-00071a-IJ for guile-devel@gnu.org; Wed, 09 Mar 2005 14:17:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D96gu-000715-Px for guile-devel@gnu.org; Wed, 09 Mar 2005 14:17:58 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D96gu-00070n-NO for guile-devel@gnu.org; Wed, 09 Mar 2005 14:17:56 -0500 Original-Received: from [129.217.163.1] (helo=mail.dt.e-technik.uni-dortmund.de) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D96SB-0002ps-Iv for guile-devel@gnu.org; Wed, 09 Mar 2005 14:02:43 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id A991044024; Wed, 9 Mar 2005 20:02:41 +0100 (CET) Original-Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1]) by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27314-04-5; Wed, 9 Mar 2005 20:02:41 +0100 (CET) Original-Received: from troy.dt.e-technik.uni-dortmund.de (troy.dt.e-technik.uni-dortmund.de [129.217.163.17]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 166A144023; Wed, 9 Mar 2005 20:02:40 +0100 (CET) Original-Received: by troy.dt.e-technik.uni-dortmund.de (Postfix, from userid 520) id 53100B982; Wed, 9 Mar 2005 20:02:40 +0100 (CET) Original-To: djurfeldt@nada.kth.se In-Reply-To: (Marius Vollmer's message of "Wed, 09 Mar 2005 16:15:19 +0100") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) X-Virus-Scanned: by amavisd-new at dt.e-technik.uni-dortmund.de X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org X-MailScanner-To: guile-devel@m.gmane.org Xref: news.gmane.org gmane.lisp.guile.devel:4848 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4848 Marius Vollmer 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