From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CcRiF57kPGLdEQAAgWs5BA (envelope-from ) for ; Thu, 24 Mar 2022 22:37:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IOTsE57kPGJAVwAA9RJhRA (envelope-from ) for ; Thu, 24 Mar 2022 22:37:34 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E61523307 for ; Thu, 24 Mar 2022 22:37:33 +0100 (CET) Received: from localhost ([::1]:53948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXV9A-0005WN-9d for larch@yhetil.org; Thu, 24 Mar 2022 17:37:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXV8w-0005W1-1t for guix-devel@gnu.org; Thu, 24 Mar 2022 17:37:18 -0400 Received: from [2001:470:142:3::e] (port=52196 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXV8v-0007OY-Nw; Thu, 24 Mar 2022 17:37:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=dSL5Bs91ZQtsKgr4bK3Xgfv9FuE3brqutME4gNm0HV0=; b=Ks5cmqIzCsDRrOyNCJdp 6IM3iUcYt0iBwR9rc1iBKj5YxxlM+a9u3tVzeEr5vzAyH1qsSgw7tNpCnk7QX0WIO4ingX3hFzbmq EQTYrSrg62Wc2F4fJ+VBPlCdc2S9BpOmCxPzfuROEBCZoSzSNK3nAikDVK9YKmlMFlwJIBibaYBXi SB4rU8KvdZXL+NjZIp9DxVJ+G/G6enkKuESbyiUNWph1jpIiuSHmFXb/0o9apynuZPL6NWm3vJi21 iDiCSA6B2sbZLUg0J6qWwgaqrzLMyc5BcKIEOvs5Mjg9vv/fRLfEnI/MkpY0yPXH3M/rFibMKbLN0 cSo2EKKdV1p6JQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:64273 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXV8v-0001LI-Bf; Thu, 24 Mar 2022 17:37:17 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: Profiling of man-db database generation with zlib vs zstd References: <875yo53iuq.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 4 Germinal an 230 de la =?utf-8?Q?R=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 Date: Thu, 24 Mar 2022 22:37:15 +0100 In-Reply-To: <875yo53iuq.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 22 Mar 2022 15:09:01 -0400") Message-ID: <87ee2r9gms.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648157853; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=dSL5Bs91ZQtsKgr4bK3Xgfv9FuE3brqutME4gNm0HV0=; b=JrZW5RsZqkcwIYkeErHYL8lQI3Q3sikBXw5IJ7O8jCDpYkCZRhsc8ZVbFuC5JPt64cv+WH 9BtMPK+VBBDoQ5iGinoPb8ham5DxYqUbtNZu0wQkrMOIUuVrXw8D5Q1LZRTIJS8YJru2zI LHq6KeR6wWPg7ZKYwctdvwPbM5tN28pVFpadBgF9L+H7YUE24qlHzAqNioFOl2z6Pm/a8g H0DPoNBkfEZ/MMyjjbt9Sd2U9fEHMrvvJCOhwsbNKFcOsWbtlcjY2QjCCoohh1EV2CJ0My UNKmBz4As1xlyzh5dzrQbNp/gwdlImOc56VP+xsI1aZsO1PcK01hH5Eh1tq6cA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648157853; a=rsa-sha256; cv=none; b=lDJSvz0B5ygmRd0Q0xw0C7ne0RdzrZZks9AyjbVdNkMeMGhywQMaSRIqWq6Xhbb+/+0Wmx uuLNwEGAIOPI3Abadf73UL3ma0gm8h0HXq9igzoKsh+uf+f63Xj40aZPA92DlL90ThlLGi 5z0LArp9esjYuxwZZNGQVBIqCiVvpmHCdWHRGX42XeETD6t1q3bAZnrrT0JsbktRZ4gOtK 5O8OraJ17m7qmRSqV11FtRXbeHwolZCedAQw8C+9UYG3WqwnSmkHJtxFXNhf9yTTkgncai whV0CsbR1Y++HgD5Gwp2QYojeerPlC5mL0AzZbPjbUtYi+P/T8IPvjq8xJ2hVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Ks5cmqIz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Ks5cmqIz; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6E61523307 X-Spam-Score: -5.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: SeWpp2mIglkZ Hi, Maxim Cournoyer skribis: > scheme@(guix man-db)> ,profile (define a (mandb-entries "/gnu/store/jgc63= dxvpd8zq0p8al71x07a02qj8i1b-man-pages-5.13/share/man")) > % cumulative self=20=20=20=20=20=20=20=20=20=20=20=20=20 > time seconds seconds procedure > 20.95 1.98 1.75 gdbm.scm:122:11 > 20.95 1.75 1.75 string-tokenize > 19.37 3.61 1.62 set-procedure-property! > 6.72 0.56 0.56 ice-9/eval.scm:604:6 > 4.35 0.36 0.36 %read-line > 4.35 0.36 0.36 anon #xa8e0b0 > 2.77 0.23 0.23 apply-smob/1 > 1.58 11.51 0.13 ice-9/eval.scm:292:11 Could it be that man-db.scm is being interpreted, hence eval.scm and =E2=80=98set-procedure-property!=E2=80=99 here? (Running =E2=80=98make=E2= =80=99 doesn=E2=80=99t compile it.) With a compiled man-db.scm, I get: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,profile (define a (mandb-entries "/gnu/store/jgc63dxv= pd8zq0p8al71x07a02qj8i1b-man-pages-5.13/share/man")) % cumulative self=20=20=20=20=20=20=20=20=20=20=20=20=20 time seconds seconds procedure 62.26 0.65 0.65 string-tokenize 11.32 0.12 0.12 anon #xc76118 3.77 0.16 0.04 ice-9/suspendable-ports.scm:651:0:read-delimited 3.77 0.04 0.04 open-file 1.89 1.35 0.02 /home/ludo/src/guix/guix/man-db.scm:161:4 1.89 0.04 0.02 stat 1.89 0.02 0.02 ice-9/popen.scm:183:0:reap-pipes 1.89 0.02 0.02 string->pointer 1.89 0.02 0.02 close-port 1.89 0.02 0.02 anon #xc760e0 1.89 0.02 0.02 fileno 1.89 0.02 0.02 string:2756:9 0.00 0.12 0.00 ice-9/suspendable-ports.scm:70:0:read-bytes 0.00 0.12 0.00 port-read 0.00 0.12 0.00 zlib.scm:99:4 0.00 0.12 0.00 ice-9/suspendable-ports.scm:158:0:fill-input 0.00 0.08 0.00 zlib.scm:158:0:make-gzip-input-port 0.00 0.06 0.00 /home/ludo/src/guix/guix/man-db.scm:196:0:mandb= -entries 0.00 0.04 0.00 zlib.scm:87:4 0.00 0.04 0.00 /home/ludo/src/guix/guix/man-db.scm:150:0:man-p= age->entry 0.00 0.04 0.00 /home/ludo/src/guix/guix/man-db.scm:191:0:man-f= iles 0.00 0.04 0.00 ice-9/ftw.scm:445:2:loop 0.00 0.04 0.00 ice-9/boot-9.scm:1971:6 0.00 0.02 0.00 %after-gc-thunk 0.00 0.02 0.00 anon #xbbc5b0 0.00 0.02 0.00 ice-9/boot-9.scm:1689:4:with-exception-handler 0.00 0.02 0.00 guix/build/utils.scm:476:0:find-files 0.00 0.02 0.00 sort 0.00 0.02 0.00 filter 0.00 0.02 0.00 /home/ludo/src/guix/guix/man-db.scm:200:26 0.00 0.02 0.00 srfi/srfi-1.scm:452:2:fold 0.00 0.02 0.00 anon #xbbc53c --- Sample count: 53 Total time: 1.049704017 seconds (0.358461379 seconds in GC) --8<---------------cut here---------------end--------------->8--- More samples would give a more exploitable profile though. HTH! Ludo=E2=80=99.