Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smhR8-007foN-C6 for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Sep 2024 22:28:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1smhR6-0058LV-Pu for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Sep 2024 22:28:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1smhR6-0058L2-Fa for pgsql-hackers@lists.postgresql.org; Fri, 06 Sep 2024 22:28:12 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1smhR0-000W00-T1; Fri, 06 Sep 2024 22:28:12 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5c3df1a3cb6so206648a12.2; Fri, 06 Sep 2024 15:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725661685; x=1726266485; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4askap6N8SXHgGUsGsjJvugsimi91F2adF+zAYTRQEI=; b=EQA3U7d+yEAQFIDt+gPCioYu2dwfA3gRi9V4u0yrCMslBjMnbhnRsH8HRSvQRbidAp CjplM6mXejxJ4h070XMSEuYDwWLQWlOdhem6h4xq8OD+NGpnzQj/nE3VtLA2PPGT39wO XOnCRrrUDb5v9oX0w39wxpfA8Oz2ozVHt85YNL/N2Io6/fZWFwcPXTZp6dOoedZWT3ng 7zKFO7wVMRfHAf6xsJ1uL+nUrqHXH9OFltDjtv/XAM2rXG7CZW/HwWODAk0S7LSgTXEt CTwkjeuyLavtP60ivBtOKPpapTd63iO1enKA/zH1rK+dpD317ctzQc4rKNZjDEcb3xS8 X3hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725661685; x=1726266485; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4askap6N8SXHgGUsGsjJvugsimi91F2adF+zAYTRQEI=; b=t8qziuS0NlyFbpc5fnjfixR/we6UistjerNaIHhdc12fPkaCmWfwl/DacsWItoVNi+ hIgwfIv2A6RHfmVdM1lUG++bn5wAgNwUlar2G/TK8mVsOzRb7gXP//bYvFaNCuDY9uk3 Wn9vgRn43LvCjyNEQBm9XYd1QT5+IkESc6LrJv4dLcdbx7COapZ5p5KyaDgDzIBJlioX 2COZIjxEUepmkVoMYukbbwvWE8YrItkPb/WXpGDxA5eN17EKB4Hfm2aapBUZoT4O1CRt /EMa8DKlvPLN6JLam74/oAW4qDvTnkKaVtKtM4rFhlRQ0ZTb2q2mYHQGk1trtcQwqlGf g3Vw== X-Gm-Message-State: AOJu0YzBHe8aP/QHS+5QJaTFPP+weWVeGUAyRnD4+k5E58MOQrldl07Y rRspRFsWcsvy0O9IErZRTukYv6wLZzP+hJurpScUatY6RoTkXAsnFkPSdMBshKjDezMHIdcTXg1 fbm3pB6t1ksNVYeHSSKd9qttzgXI4abaYqy4= X-Google-Smtp-Source: AGHT+IFRYJBG9JwdPYaNfIlCT87L/yo031jC2D4X/FcgTE4EegmyWO+a7mpZrVqeara27mWJQbOAQZw5XWirWIc991Q= X-Received: by 2002:a17:907:9707:b0:a7a:87b3:722f with SMTP id a640c23a62f3a-a8a885fb97amr152438066b.3.1725661684765; Fri, 06 Sep 2024 15:28:04 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Thomas Munro Date: Sat, 7 Sep 2024 10:27:27 +1200 Message-ID: Subject: Re: Trying out read streams in pgvector (an extension) To: "Jonathan S. Katz" Cc: pgsql-hackers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk There was a mistake in my query, so the macOS speedup column was wrong (was accidentally comparing Linux number with macOS master, sorry for the noise). I also forgot to mention that you don't actually get the speedup on PostgreSQL 17 on a Mac, because Peter only recently implemented the needed read-ahead support for macOS in master/18, but it doesn't get slower. Here's the corrected table: | linux (xfs) | macos (apfs) branch | eic | avg | speedup | stdev | avg | speedup | stdev --------+-----+--------+---------+--------+--------+---------+-------- master | | 73.959 | 1.0 | 24.168 | 72.290 | 1.0 | 11.851 stream | 0 | 70.117 | 1.1 | 36.699 | 76.289 | 0.9 | 12.742 stream | 1 | 57.983 | 1.3 | 5.845 | 79.969 | 0.9 | 8.308 stream | 2 | 35.629 | 2.1 | 4.088 | 49.198 | 1.5 | 7.686 stream | 3 | 28.477 | 2.6 | 2.607 | 37.540 | 1.9 | 5.272 stream | 4 | 26.493 | 2.8 | 3.691 | 33.014 | 2.2 | 4.444 stream | 5 | 23.711 | 3.1 | 2.435 | 32.622 | 2.2 | 2.270 stream | 6 | 22.885 | 3.2 | 1.908 | 31.254 | 2.3 | 4.170 stream | 7 | 21.910 | 3.4 | 2.153 | 33.669 | 2.1 | 4.616 stream | 8 | 20.741 | 3.6 | 1.594 | 34.182 | 2.1 | 3.819 stream | 9 | 22.471 | 3.3 | 3.094 | 30.690 | 2.4 | 2.677 stream | 10 | 19.895 | 3.7 | 1.695 | 32.631 | 2.2 | 4.976 stream | 11 | 19.447 | 3.8 | 1.647 | 31.163 | 2.3 | 3.351 stream | 12 | 18.658 | 4.0 | 1.503 | 30.817 | 2.3 | 3.538 stream | 13 | 18.886 | 3.9 | 0.874 | 29.184 | 2.5 | 4.832 stream | 14 | 18.667 | 4.0 | 1.692 | 28.783 | 2.5 | 3.459 stream | 15 | 19.080 | 3.9 | 1.429 | 28.928 | 2.5 | 3.396 stream | 16 | 18.929 | 3.9 | 3.469 | 29.282 | 2.5 | 2.868