From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCHES] Use a better SRFI-64 implementation. Date: Tue, 11 May 2021 16:32:08 +0200 Message-ID: References: <94ecc225-684f-1d36-bc72-53b8026753b6@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37013"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue May 11 16:32:57 2021 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgTRQ-0009Rw-GU for guile-devel@m.gmane-mx.org; Tue, 11 May 2021 16:32:56 +0200 Original-Received: from localhost ([::1]:37450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgTRP-0007lG-CO for guile-devel@m.gmane-mx.org; Tue, 11 May 2021 10:32:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgTQl-0007jc-0l for guile-devel@gnu.org; Tue, 11 May 2021 10:32:16 -0400 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:41831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgTQh-0006IL-6Q for guile-devel@gnu.org; Tue, 11 May 2021 10:32:14 -0400 Original-Received: by mail-ed1-x52e.google.com with SMTP id v5so12067951edc.8 for ; Tue, 11 May 2021 07:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=gzuPF+FaTTK9A58Q53iP0NA11VFXVmYIEpD3yQp/Wuc=; b=ksQoXmtTLlRhdjqbl/vfmuEN/tKWbYHr2600WfeNZQJVTP0Nf+T14t97cwmT1AE/1j Uvy5xRxvYIHkYDZDME7g9pGSH3Ryd5fTTdlNqXOO83mVYLQXMLQO0VKRfQQ7NJjW1C2Y 0bRfCUJG3XYgie36piNjhp9GVoJpGlBef3AlxoPA/fhYsLErvq//KvxiObs1bNHWNrL2 HPukEhj3IPZ6v7NUTfhYUP4HA8p8TXCJB6EKmDtklEaEwTMnz2eusnRqEqVBz4e1HVvU MxOiqWjzOrURqfOFigrrIneJYmOEpw/um8Xk6+vPn7G8f9b1Cr+9TUKDsXd6UHc+MuIN GZDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=gzuPF+FaTTK9A58Q53iP0NA11VFXVmYIEpD3yQp/Wuc=; b=rm48+sTh+cdVFDQSyVHV3ZN1FrNeIgDYGdd7UC1H74n82OiJKRICrhsye9hPavT0N0 +ohrY+Pw4ig2Cv9R0GLDqq6dGUk/FY4hvw+wGhHDyvO+Sd30KoKrh2WJmkMO4i6kpTaM n+yB1qPzH57g2wZ6YkKTCDkkGfialgqVQOP/KSRP4RueZ4ycDTpZWreWDQhbvE0rcz57 SuWym6nyEKbJbhNkfyXKttyyn/iH5BYyofVLJ/kT0UP8ymUlsVJhSP7tn6oKld0ARxyV PeIKIlMyHxeSWrihxwK37gh2sFe7Yz1RgkqVokdu5coM9vsKuN+s3qhLVRlYzeSns4St IAUQ== X-Gm-Message-State: AOAM532D9JmbsHTtWcIk69aTyvTHR3urhKjuPLLaQhfg7WTIi5EWtm0e xazW0dOYColvNz4kkey+/bRwwXknf0U= X-Google-Smtp-Source: ABdhPJxCWOhcMnxHqpa2oteCI0QsfV+sdyb/LIImTrDjby+Qf9atHhJ603OoNAP8TP1gl44MKYzLQg== X-Received: by 2002:a50:ee88:: with SMTP id f8mr36037636edr.176.1620743529063; Tue, 11 May 2021 07:32:09 -0700 (PDT) Original-Received: from [192.168.178.20] (b2b-109-90-125-150.unitymedia.biz. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id k12sm14400891edo.50.2021.05.11.07.32.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 May 2021 07:32:08 -0700 (PDT) In-Reply-To: <94ecc225-684f-1d36-bc72-53b8026753b6@gmail.com> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=taylan.kammer@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20765 Archived-At: On 10.05.2021 20:25, Taylan Kammer wrote: > > - Improved expand-time performance for large test suites > I thought it would be a good idea to quantify this, so I benchmarked the compilation performance of a test suite of 289 tests (that of the scheme-bytsetructures library), and had the following results. The first three compilations are with stock Guile 3.0.7, and the latter three are with the patch that replaces the SRFI-64 implementation applied to 3.0.7. === snip === $ touch run-tests.guile.scm && time /opt/guile-3.0.7/bin/guild compile -L . run-tests.guile.scm wrote `.../run-tests.guile.scm.go' real 0m9.465s user 0m12.787s sys 0m2.179s $ touch run-tests.guile.scm && time /opt/guile-3.0.7/bin/guild compile -L . run-tests.guile.scm wrote `.../run-tests.guile.scm.go' real 0m9.419s user 0m12.988s sys 0m1.842s $ touch run-tests.guile.scm && time /opt/guile-3.0.7/bin/guild compile -L . run-tests.guile.scm wrote `.../run-tests.guile.scm.go' real 0m9.387s user 0m13.132s sys 0m1.656s $ touch run-tests.guile.scm && time /opt/guile-master/bin/guild compile -L . run-tests.guile.scm wrote `.../run-tests.guile.scm.go' real 0m4.371s user 0m5.903s sys 0m1.239s $ touch run-tests.guile.scm && time /opt/guile-master/bin/guild compile -L . run-tests.guile.scm wrote `.../run-tests.guile.scm.go' real 0m4.556s user 0m6.836s sys 0m1.502s $ touch run-tests.guile.scm && time /opt/guile-master/bin/guild compile -L . run-tests.guile.scm wrote `.../run-tests.guile.scm.go' real 0m4.493s user 0m6.273s sys 0m1.767s === /snip === As you can see, the time to compile the test suite is cut in half. Here's the test suite used for the benchmark: https://github.com/TaylanUB/scheme-bytestructures/blob/master/run-tests.body.scm (That file is included from run-test.guile.scm.) - Taylan