From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Israelsson Tampe Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: Python-on-guile Date: Sun, 25 Apr 2021 12:18:56 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f171ec05c0c95bc0" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8432"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user , guile-devel To: Mikael Djurfeldt Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Apr 25 12:19:25 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 1labrI-00025j-LL for guile-devel@m.gmane-mx.org; Sun, 25 Apr 2021 12:19:24 +0200 Original-Received: from localhost ([::1]:49720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1labrH-0005KP-NX for guile-devel@m.gmane-mx.org; Sun, 25 Apr 2021 06:19:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51176) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1labr4-0005KF-Ma; Sun, 25 Apr 2021 06:19:10 -0400 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:51148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1labr2-0008I7-T8; Sun, 25 Apr 2021 06:19:10 -0400 Original-Received: by mail-pj1-x102f.google.com with SMTP id u11so21707174pjr.0; Sun, 25 Apr 2021 03:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PWer5lJ9aNYiI4uxUxHIEqVDecO3AQJNpMS6Wq4EDhs=; b=qo+Th9VYTtYlOP9B8rqIFCxJ+otKFmLRIIIizO/US40fDpCVx7IZAm6L5HEiCoGHqJ mArbxSP25nNhtyqzjGo1IXmz5mfhII1nlgg/cyfgVM4CUuJV5LTD25PWhz72GamGOtlq 0t+uyQqPnHJ/ELhMxyZkhqC1IImfti2NekssIGMO4cDUU90E4HSmoIEiTL4jIct4n4/S z6PvWTvEKgR50bY0BQ16LQgQBLNrYmvs18elH1BRIx0v7r0bYZLlkhaxm6f/J2iBk6p/ B7L+P5DMlXE1faSmLIz0cX6na90ZCdPy/BeulpuQ5k6sZghq1eTBn+UkBd2DDFn2Hmfc TEdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PWer5lJ9aNYiI4uxUxHIEqVDecO3AQJNpMS6Wq4EDhs=; b=Ri/qOjNWUq3/at3maChveE9JcQVh3Zr1CDlA2MFLrUHh+mLQEhdvQVUJKsLhpISbXO feDLMAubFStxyiVgsKJwgi96ryxbp18ovadIgAioVjJbN7uYk9XekZafKjqyQgn/mBNn G00KcCp7vRRWmEvSc0cMS4GHP+/31Le/VWLas5gmXrpuGqRK23LgiaRJa+AZO9bPeS28 gIdRl1lnjg3vdeTKtzCrwEIR0QldXLfXX4SpUDkWfx3814eyPSmHb9h/OZNOj4+F+aUR kII71SlX7Ko95qjaIA/wdnLpm5b+jCwf31TGIW0LtcWIFh3OrhFCesu5hdNZnmx+tdMl KZ1A== X-Gm-Message-State: AOAM5330Aq9XzNVhe15e29xQEIz2C9kMy4RSDliE3GFW8yApt+W29B4x 9iRV43SKJjFPCvYY/tAx3eS735ryYUU2Z7RxXMSaQAhv X-Google-Smtp-Source: ABdhPJyLcO6vp/eCeeeWGus/4Sc4N0rDWuTFEj4uyNdhEU4XBr2IVa7T+rgzDIqjT85zZhTlKFYmw6F4dWqvLE8poRI= X-Received: by 2002:a17:902:e9c4:b029:eb:4626:feba with SMTP id 4-20020a170902e9c4b02900eb4626febamr13397611plk.39.1619345947061; Sun, 25 Apr 2021 03:19:07 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=stefan.itampe@gmail.com; helo=mail-pj1-x102f.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, HTML_MESSAGE=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:20751 gmane.lisp.guile.user:17451 Archived-At: --000000000000f171ec05c0c95bc0 Content-Type: text/plain; charset="UTF-8" Python List lookup is 2x slower now than cpython. Tuple lookup is slightly faster. On Fri, 23 Apr 2021, 17:01 Mikael Djurfeldt wrote: > Hi, > > Yesterday, Andy committed new code to the compiler, some of which > concerned skipping some arity checking. > > Also, Stefan meanwhile committed something called "reworked object system" > to his python-on-guile. > > Sorry for coming with unspecific information (don't have time to track > down the details) but I noticed that my benchmark script written in Python, > and which computes the 20:th Ramanujan number, now runs 60% faster than > before these changes. > > This means that python-on-guile running on guile3 master executes python > code only 2.6 times slower than the CPython python3 interpreter itself. :-) > > Have a nice weekend all, > Mikael > > --000000000000f171ec05c0c95bc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Python List lookup is 2x slower now than cpython. Tuple l= ookup is slightly faster.=C2=A0

On Fri, 23 Apr 2021, 17:01 Mikael Djurfeldt = <mikael@djurfeldt.com> wr= ote:
Hi,

Yesterday, Andy committed new code to the compiler, so= me of which concerned skipping some arity checking.

Also, Stefan meanwhile committed something called "reworked object s= ystem" to his python-on-guile.

Sorry for comi= ng with unspecific information (don't have time to track down the detai= ls) but I noticed that my benchmark script written in Python, and which com= putes the 20:th Ramanujan number, now runs 60% faster than before these cha= nges.

This means that python-on-guile running on g= uile3 master executes python code only 2.6 times slower than the CPython py= thon3 interpreter itself. :-)

Have a nice weekend = all,
Mikael

--000000000000f171ec05c0c95bc0--