From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id D203D1F8C6 for ; Mon, 26 Jul 2021 11:16:16 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 80C6E3851C19 for ; Mon, 26 Jul 2021 11:16:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 80C6E3851C19 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1627298175; bh=HNbjKjHcOii2CuPZjxAChwm77L4usxPpcHuNjPT6Ud8=; h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=cBSYJfnktfEjsgNX6wKLImpWa7Gbl1HgqH/7X8//f7p9WbMgZypMpr62zmvav3XOO PO6xlgLlybB+SvUgIpJkK8PdpPCWsyAR3v8C5efE2juWG+ms20ethymt08UN0rjaSn 3HRcXnduB/e58irEWQSP7PbFjNrLTe3DrsthlVBQ= Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2046.outbound.protection.outlook.com [40.107.21.46]) by sourceware.org (Postfix) with ESMTPS id DDEC83858C3A for ; Mon, 26 Jul 2021 11:15:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DDEC83858C3A Received: from DB6PR07CA0066.eurprd07.prod.outlook.com (2603:10a6:6:2a::28) by VE1PR08MB4653.eurprd08.prod.outlook.com (2603:10a6:802:b1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.25; Mon, 26 Jul 2021 11:15:50 +0000 Received: from DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:6:2a:cafe::c7) by DB6PR07CA0066.outlook.office365.com (2603:10a6:6:2a::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.7 via Frontend Transport; Mon, 26 Jul 2021 11:15:50 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; sourceware.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;sourceware.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT042.mail.protection.outlook.com (10.152.21.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Mon, 26 Jul 2021 11:15:50 +0000 Received: ("Tessian outbound 57330d0f8f60:v99"); Mon, 26 Jul 2021 11:15:50 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 96a3ce6b257d69c9 X-CR-MTA-TID: 64aa7808 Received: from 6b8430519758.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 63E73B4F-5DF0-47C8-B753-44A12E2D7AC6.1; Mon, 26 Jul 2021 11:15:32 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 6b8430519758.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 26 Jul 2021 11:15:32 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GWsZgwVs0ztp3J5QHk7djPFlHICfGIoiVxG3svK+HcqW3xeoukiXY2Uh6rDQ2hLm8T6zfzFW/UQ8Q4CMJJXDzhEk4VBCYilhtL4LPkCQn4Z3OK5SZpaKrz7OgiJNHri/A5vC2OYfdGcuvTbRHLh2akP3/v2r08u3WXzQINKOH19XYkCzTGAtB/AeBIyly1lULFHg5zi3FOs6wA2jqmcweoLqZQRRtoa4BbKhbWL52PBJxB3E238gf0ToJIJOdb4a2oBFco0R8NhBqRYHjsJ9o3MJ3YlBf98dAJE2s30z/sLpJBQKanAjLdmkjq5RnDa1bYmdrXRn+wgB+U8dovJ6vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HNbjKjHcOii2CuPZjxAChwm77L4usxPpcHuNjPT6Ud8=; b=ExMv3ByePdq7e5uzG9ubicfnZYLQuBY6juUzmzFEzPuWtRA3hR/b1gLAJOW2KLlX3ieKtUdmO2F/2myd6bdqEDOQonhTWotxjNQegFVEgIAXWYEOqXYLHSd92QWeMfkFXhQqDeRlA53+vx+dxygXhb5/IE7Vd29yIKnpATqJL3tjauLFZf0vS7nZJR76MqTEwxuoc+HSFhtVVv90NiOBKQGnltRWSxjjYh3gLBGUgDlvFiwCMXifGTwee4mwCD/pVo3olwJUpmv0YxiIKiWaj6HHNn+gpjjZt3jrONwbpNo0Sfc34kVfemwGYWWiJUHEiWSRh1qQ9jE/7XSjCw5fpQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Received: from VE1PR08MB5599.eurprd08.prod.outlook.com (2603:10a6:800:1a1::12) by VI1PR0801MB1999.eurprd08.prod.outlook.com (2603:10a6:800:8a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.29; Mon, 26 Jul 2021 11:15:28 +0000 Received: from VE1PR08MB5599.eurprd08.prod.outlook.com ([fe80::5ccd:ab57:a64f:e07e]) by VE1PR08MB5599.eurprd08.prod.outlook.com ([fe80::5ccd:ab57:a64f:e07e%7]) with mapi id 15.20.4352.031; Mon, 26 Jul 2021 11:15:28 +0000 To: "naohirot@fujitsu.com" , Noah Goldstein Subject: Re: [PATCH v2 2/5] benchtests: Add memset zero fill benchtest Thread-Topic: [PATCH v2 2/5] benchtests: Add memset zero fill benchtest Thread-Index: AQHXfTFtkDPP6CGFiUe3tShnooB/HqtME7OAgAFRegCAAAMFAIAAVewAgAAJeyeABzJlgIAAKFfa Date: Mon, 26 Jul 2021 11:15:28 +0000 Message-ID: References: <20210713082214.307529-1-naohirot@fujitsu.com> <20210720063500.362313-1-naohirot@fujitsu.com> , , , In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Enabled=True; MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SiteId=a19f121d-81e1-4858-a9d8-736e267fd4c7; MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_SetDate=2021-07-26T08:42:38.144Z; MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Name=FUJITSU-RESTRICTED; MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_ContentBits=0; MSIP_Label_a7295cc1-d279-42ac-ab4d-3b0f4fece050_Method=Standard; Authentication-Results-Original: fujitsu.com; dkim=none (message not signed) header.d=none;fujitsu.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 2cbe9ce0-1c92-4202-9c2c-08d95026b98e x-ms-traffictypediagnostic: VI1PR0801MB1999:|VE1PR08MB4653: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:1247;OLM:1247; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: vAKHTY1N+7coRu4KUQ2TMxseYVfZS5MoiR0lHd355sMqLxU8pm9wdwvlkDHuRUmJY6yCsnXHUwstvsSRcLkFCqVRw0Y1yV0/JX+O9gwjDKlZICeDGcVgUu4CpIhwlw8tA/7OPiD+eyIc2Du1ECyA55sBqmerOrABcuycZdcdC0zT3CrqvyabX70QSKvvcMwZthc4qPo1skbqOprCsGkhOZzBTZ3ZgbdOnu/7cO/ppmX2Brie0Mc6vJeibJtbM/FM9g5LAqCr9jmWXO/w0a0LGHyxRg4kAuijwyo+P2Nj3uNb+gZ1cHGmz8uSJdMGYTq1eQjsvjZDysNQQP8LtqbBFXfzYV2GgPvvSZPm3YevnGRMqqIgkV7/yQgp0KQkOPUHgGgzrO2gtr4ArKdv6UkLAvSeJYQAiEh4DPfi4gCiT8vysnBwfl24bXlJRTdf+AP7ksYKb1KwssqrMvR1Ku62pdmddjf9d4SL7zIhgXfqskRXV1aMvFL28FAsHcdkTwcwZhZVPOXV8SNI+rJ+Byq15LSd7BFJZnlYYbRuhVPJFWVPdZgXfvatgNno5App5veV7/EsSg6O49+hMo+l1jzJyTk8EdU0yoQjxWgQWgCI1rmWFXfR/Zhq4JVNIOwi6ZtUL/l/1nSs6BvSEU54T7VHw3qn0/2qzRt5SpkYIMvAOIFoIn5bBlDE3+NnZG0ZGaVuyXHkv2BwBDJbURZYjsfu0A== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB5599.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(346002)(39850400004)(366004)(376002)(64756008)(66946007)(52536014)(55016002)(54906003)(76116006)(91956017)(122000001)(8936002)(110136005)(186003)(66476007)(86362001)(38100700002)(4326008)(33656002)(66556008)(5660300002)(71200400001)(8676002)(2906002)(6506007)(478600001)(26005)(316002)(66446008)(9686003)(7696005)(38070700004); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?foOgl6+oNswvNcXEzpWYCNtBItCzFtXn7ZDyG6q6hIu3AoSZMy7rDkWtAR?= =?iso-8859-1?Q?nvugryMWbCFRpJS1k3V29IWa9o43wmWiwnVsijKYddeefvwuRsGa/XvtTk?= =?iso-8859-1?Q?O2nbbA/7UJAskXjh4WSgefQ/IacesT6/qQC8xefXT7gxFRp8zBWttE5QYQ?= =?iso-8859-1?Q?4IHiueKGp5P9nKyXGvS8xgeQ1M2yHY8XdrSkdBQAft2NS12iiOVKKfPYwb?= =?iso-8859-1?Q?qVR/BtjblBCTEzgJbXlUcPO4uy1Mo8CdPHqsLZrGTpYVYA7W+VTlICfJUY?= =?iso-8859-1?Q?sOp5smiTdS851eeMB1LxkvP4zFBCnGSThAMN73KmhPMIrRSl7cOuitKgGP?= =?iso-8859-1?Q?UncOl9S00R9c6awPFUGmsiLQKCNQVgi4gLpE5rcfpWMLnYjZ5lBvcnNIn3?= =?iso-8859-1?Q?cLeNSnAtXUbukzLVLPk49xthrWXHa17TW4qr0YddVly1oTbh6pvwKZiy4O?= =?iso-8859-1?Q?cjQaO3TLIn1QIgBufUPUDOSHyT2gPoCZocvuNPeURhx7y5BqvF8tPgYadm?= =?iso-8859-1?Q?ha5eIKI5gTPXY5cKig1WR7uWPg9mivZ1LrpOlIWbIfhsZjnnniHgQI8L7g?= =?iso-8859-1?Q?LndPsqSwA9EvwVzOkGcFqjVZMOU4kRWjNYn7PqpO1f6eHkaI+lA9daGXRF?= =?iso-8859-1?Q?pUmXRA3dLtyqK9uEIXPNMPOfhTy/tbvbtJAs8DmdfXu9uOACuTXeZRl/ve?= =?iso-8859-1?Q?BuV4+0/z/1cNUafs2IoCSy1qUvOWEbz61CTKPBqiJVwdU4YfutywSIZFZh?= =?iso-8859-1?Q?rDVV6WD6cnoGy6uNTShqA/iTLNjV5BC0XOnHEyl6mnDOeYtnYD77hD/Syb?= =?iso-8859-1?Q?sKfxbYHt8YOkDPNHUHJNfXQQYx8rUYYRI529cmIrDa2TH5RB4lGNPCJifB?= =?iso-8859-1?Q?G6RR5wLGADyIK6DT1VX6xDvwKziB+oszY7chuTvFwm6WQZN7QMzy3zmcQ7?= =?iso-8859-1?Q?r2bT+gqWQOCjX5PAHHrk5dDp/2h+E/0dwJCutolAUT4w8wjF3NJn7vZyLk?= =?iso-8859-1?Q?W8fusnk2TPmybXoEtAlefBqrKH3U0smK50p7Zj7r2BrGD5+6S/ds9LSl3Y?= =?iso-8859-1?Q?KrUDVos9dC5/UQp1EGUPk0uCko37RzAKSck33qqM5xkOiXJc6MU4wD3IZ4?= =?iso-8859-1?Q?e7G3ASYR5aOJd2TnfC7vB2BmxUseZkqem3WsZo0YcBjJ+3fdvfwYJ4+7YV?= =?iso-8859-1?Q?UpXlV0Wnw3TbGAcNyN7SKIuSKI93l7OCk2YmFY+4dwEr09dkI2/edO8ScL?= =?iso-8859-1?Q?PqCk+XpoyP8hICQm+srBF+RdhvVW0yip77I8xh2dg1gHBHxKl9Nh5YWBgH?= =?iso-8859-1?Q?glBnACKfVwhLqWKhyKfA1o/7hNOW0yZQe8rb4Mfpr1e6fo4=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0801MB1999 Original-Authentication-Results: fujitsu.com; dkim=none (message not signed) header.d=none;fujitsu.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 2d6b27a3-525f-4d0d-8759-08d95026ac8a X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qyWUM3NLGUqS35U67U8vai3BVVIDI41nGLZEDvaYhhcB5vNAqW0/IdEue5rO1q8l0RtV6HD0jFakQ2YV1+mhc0hVzgF0a6041ZPBIDH8OMmKZNSmD5BB7QlRFxvNqIBIQjd5nNmZhg4kRr2yVI5xh/yts3sLh0jvNM9e4ucQ/LZ58qa7X8mqjBAwogY9xmIcI1FX/2j/0q7XNm7BTryqzyyGcZNU0CteMDChiyzuWgpQtG6nM2A0E4S8yoFQhlxn8Fb2VaDZdbWj+aPM9l6/SD8ratmDmSepv3ALKPxa4SRbSgWJqCrNE005Ltw5zTlOui+uSfZBu1VfPjbjYLx/q7LZDdsgPT9bhfkaqX4b5c+XiGuOQUF2RlllYh1VThBeSpQafvmVdags4Dug5A4FkHF8OODbl4OiKuSlQ0yXVRvDlqJhMaC0jfCrcZuGpBZU2URLIaYkwiiwsS09R/VXYo2laGoTxFFwrwYvlYRjwYdejod5KzwG7K15IhCNDLdhIVfhL0sroP3629Wki3kJ3KZ7BHTWwWc7ntQvo9BhFOKgMC1NkN+HOC3zxYCn/kSPM5wLztgzEBZK9c8n6gQbow8F1yWUvb9b/NX1qrZCr7xM0JJaTdvkV9j5evPdqAMJVilCXWPVm0lwKCKEaTGPMU2YLoev1z943UelcxR5ug10AWS0UkR95HwBQg7JFFYBOcmyiqGS9di5gR9iz3H33A== X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(4636009)(36840700001)(46966006)(110136005)(33656002)(36860700001)(8936002)(52536014)(54906003)(5660300002)(336012)(6506007)(81166007)(316002)(70206006)(70586007)(82310400003)(9686003)(55016002)(86362001)(186003)(356005)(26005)(508600001)(47076005)(4326008)(7696005)(8676002)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2021 11:15:50.1676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2cbe9ce0-1c92-4202-9c2c-08d95026b98e X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT042.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4653 X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Wilco Dijkstra via Libc-alpha Reply-To: Wilco Dijkstra Cc: GNU C Library Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Hi Naohiro,=0A= =0A= >> This loop is basically equivalent to CALL (impl, s, c2, n * 16), so you= =0A= >=0A= > Yes, but the number of function call is different between 1 time and=0A= > 16 times.=0A= =0A= The call overhead is not an issue unless 'n' is really small. The point is = that=0A= the loop writes 16 * n bytes, so you're really testing 16n rather than n.= =0A= =0A= >> might as well change the outer loop to use a larger 'n'. The accuracy=0A= >> will be bad unless 'n' is really large, and there is no way to improve i= t.=0A= >=0A= > Umm I couldn't understand the logic of this part.=0A= > How do we change the the outer loop to use a larger 'n'?=0A= =0A= By removing the * 16 from the inner loop and adding it to the outer loop.= =0A= That avoids the confusion that we are testing size 'n' when we are really= =0A= testing n*16.=0A= =0A= >=A0 CALL (impl, s, c1, n * 16);=0A= > to=0A= > =A0 __builtin_memset (s, c1, n * 16);=0A= >=0A= > Is this the array you mentioned?=0A= =0A= That doesn't make any sense since that will just call memset and use the=0A= default ifunc for memset.=0A= =0A= What I mean is something trivial like: CALL (impl, s, memset_array[i & 15],= n);=0A= This way you can test any kind of pattern (like all zero, all one, and comb= inations=0A= with varying number of zero->non-zero and non-zero->zero transitions).=0A= =0A= Cheers,=0A= Wilco=