From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id D36C61F0378 for ; Thu, 20 Mar 2008 23:26:06 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 7BBA8F2F7 for ; Thu, 20 Mar 2008 23:24:32 +0900 (JST) Received: from localhost (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 919A48FC1B for ; Thu, 20 Mar 2008 23:24:37 +0900 (JST) X-Virus-Scanned: amavisd-new at funfun.nagaokaut.ac.jp Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by localhost (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Au0XhjB7TMAv for ; Thu, 20 Mar 2008 23:24:37 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 710008FC19 for ; Thu, 20 Mar 2008 23:24:37 +0900 (JST) Received: from carbon.ruby-lang.org (carbon.ruby-lang.org [221.186.184.68]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id EC0F963004D for ; Thu, 20 Mar 2008 23:24:34 +0900 (JST) Received: from beryllium.ruby-lang.org (beryllium.ruby-lang.org [127.0.0.1]) by carbon.ruby-lang.org (Postfix) with ESMTP id 7A55C3C21E218; Thu, 20 Mar 2008 23:24:19 +0900 (JST) Received: from parasect1.netlab.jp (parasect1.netlab.jp [210.251.121.9]) by carbon.ruby-lang.org (Postfix) with ESMTP id B7DFC3C21ED7B for ; Thu, 20 Mar 2008 23:24:12 +0900 (JST) Received: from x61.netlab.jp (softbank221079075121.bbtec.net [221.79.75.121]) by parasect1.netlab.jp (Postfix) with ESMTP id 8ADB91C4EA27 for ; Thu, 20 Mar 2008 23:24:24 +0900 (JST) Received: from matz by x61.netlab.jp with local (Exim 4.69) (envelope-from ) id 1JcLgt-0001p1-RE for ruby-core@ruby-lang.org; Thu, 20 Mar 2008 23:24:23 +0900 Delivered-To: ruby-core@ruby-lang.org Date: Thu, 20 Mar 2008 23:24:12 +0900 Posted: Thu, 20 Mar 2008 23:24:23 +0900 From: Yukihiro Matsumoto Reply-To: ruby-core@ruby-lang.org Subject: Re: Copy-on-write friendly garbage collector To: ruby-core@ruby-lang.org Message-Id: In-Reply-To: <47E25E6F.8010801@plan99.net> X-ML-Name: ruby-core X-Mail-Count: 15966 X-MLServer: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post) X-ML-Info: If you have a question, send e-mail with the body "help" (without quotes) to the address ruby-core-ctl@ruby-lang.org; help= User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on carbon.ruby-lang.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=7.0 tests=AWL,BAYES_40,BBTEC, CONTENT_TYPE_PRESENT,EXIM_ERRWARN,FAKEDWORD_VERTICALLINE, FORGED_RCVD_HELO autolearn=disabled version=3.1.7 X-Original-To: ruby-core@ruby-lang.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-Id: ruby-core.ruby-lang.org List-Software: fml [fml 4.0.3 release (20011202/4.0.3)] List-Post: List-Owner: List-Help: List-Unsubscribe: Hi, In message "Re: Copy-on-write friendly garbage collector" on Thu, 20 Mar 2008 21:54:04 +0900, Hongli Lai writes: |Yes, I use the following tool for benchmarking: |http://pastebin.com/m26839d72 I feel this one is bit too simple. Since GC behavior heavily depends on object allocation pattern of programs, I guess we need more realistic cases to benchmark. Perhaps we should contact Lloyd for his cases in . By the way, I'd like to know how much effective this copy-on-write friendly patch is. Does anyone have a good (even artificial) case? |I'd like to know whether my patches are acceptable, now that it's just |as fast as the normal Ruby by default. And if it's not acceptable, I'd |like to know how many % speed hit would be acceptable. 2% loss for almost all cases are good enough. But I cannot be sure for 2% for this specific case. matz.