From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: Guile's time execution issues Date: Sun, 26 Apr 2020 19:16:29 +0200 Message-ID: <87d07u182a.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="503"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: guile-user@gnu.org, guile-devel@gnu.org To: =?utf-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Sun Apr 26 19:17:01 2020 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 1jSktp-000Y2E-70 for guile-devel@m.gmane-mx.org; Sun, 26 Apr 2020 19:17:01 +0200 Original-Received: from localhost ([::1]:39126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSkto-00079z-5Q for guile-devel@m.gmane-mx.org; Sun, 26 Apr 2020 13:17:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56746) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSktR-0006sB-Gl; Sun, 26 Apr 2020 13:16:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47408) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSktR-0006rM-79; Sun, 26 Apr 2020 13:16:37 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=49394 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jSktM-0000Gx-4q; Sun, 26 Apr 2020 13:16:33 -0400 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 =?utf-8?Q?Flor=C3=A9al?= an 228 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu In-Reply-To: ("Aleix Conchillo \=\?utf-8\?Q\?Flaqu\=C3\=A9\=22's\?\= message of "Tue, 21 Apr 2020 15:03:21 -0700") 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:20494 gmane.lisp.guile.user:16403 Archived-At: Bon dia! Aleix Conchillo Flaqu=C3=A9 skribis: > I was trying to get some guile-json performance times loading large JSON > file. However, I'm getting increasing numbers at each run, so I'm wonderi= ng > if I'm doing something wrong. Below you can see how the first run took > 19.95s and then running the same command kept increasing. > > I'm running Guile 2.2.7 on macOS Catalina 10.15.3. > > scheme@(guile-user)> (use-modules (json)) > scheme@(guile-user)> ,t (define a (call-with-input-file > "/Users/aleix/Downloads/large-file.json" (lambda (port) (json->scm port))= )) > ;; 19.956429s real time, 87.100982s run time. 75.270202s spent in GC. > ;; 26.173179s real time, 143.645265s run time. 131.022631s spent in GC. > ;; 28.193926s real time, 154.758375s run time. 141.697236s spent in GC. > ;; 29.044218s real time, 160.745984s run time. 147.449073s spent in GC. > ;; 30.480873s real time, 170.855527s run time. 157.332793s spent in GC. > ;; 30.555700s real time, 172.938278s run time. 159.468737s spent in GC. > ;; 32.190478s real time, 172.807551s run time. 158.905645s spent in GC. Could this have to do with ? Could you check if that happens with 3.0.2? (Or suggest a =E2=80=98large-file.json=E2=80=99 to use. :-)) Thanks in advance! Ludo=E2=80=99.