From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70054.outbound.protection.outlook.com [40.107.7.54]) by sourceware.org (Postfix) with ESMTPS id B3A593858C3A for ; Wed, 20 Oct 2021 17:48:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B3A593858C3A Received: from DB7PR03CA0076.eurprd03.prod.outlook.com (2603:10a6:10:72::17) by DB9PR08MB6812.eurprd08.prod.outlook.com (2603:10a6:10:2a2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.17; Wed, 20 Oct 2021 17:48:09 +0000 Received: from DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:72:cafe::83) by DB7PR03CA0076.outlook.office365.com (2603:10a6:10:72::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16 via Frontend Transport; Wed, 20 Oct 2021 17:48:09 +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 DB5EUR03FT028.mail.protection.outlook.com (10.152.20.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4628.18 via Frontend Transport; Wed, 20 Oct 2021 17:48:07 +0000 Received: ("Tessian outbound 2e7020cc8961:v103"); Wed, 20 Oct 2021 17:48:07 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e67e12d81856e52b X-CR-MTA-TID: 64aa7808 Received: from a814641cb057.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 07C17B37-EE51-4B1F-8BC2-61428351A1F5.1; Wed, 20 Oct 2021 17:48:01 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a814641cb057.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 20 Oct 2021 17:48:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EWPeOzh0p17xqSeCQMj12OUC9JpZwIlpJCZSukj9HoSYZaI9O2Anz5pk1iqBYwGd99tdJEILu0xvfWLMkGgLiIT/yUpO8NRcwvNSXuiv6Fhh13kFWQx8UHEMQAXWIxV0u1ABtc1QaZZdYgT9gixTcAb25CeAB4wtWaEQfM8MIEkkV/7LbUfBAJmG+UQ8ohn0/lNmfok+2A0GKqg8YFPgTQQsNPWipNv5I45UAWQrLjH7OMkB4She4bIoBvp7+sv8QPHeRHGgn0j26U/xj0OIaig3a8HwwiRC3Wh3m41BGeHiE1TclAATIvpZOsbaB6GD8dsNUPQefRdwjDbTqgul4w== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Y3T7q23Zq2Ndo9WhmPOrgRWVpTcXHquoRpAiMX+8Da8=; b=RaSNSAehMGBvkKSRKkO/3bUmODpIa1VI7VrE3zxUTZdgf5FjMunYC67YjhewxXcCkIZnOptimSYu2b6DZHrOd0ww0CQV58eTkgvP8NQOJ+y+J43ob5WP7QQJ1u150TQRNlPGbUp9OjPKWMYvijC7A/DwC3ycH8xMaVcaz+2eoLDd0aLAtymxaJj3jbftNtuXiO5pMyJtuRiPhcdY+qaamK941IC/t3zfXa3uMIvDppSOtUmzg3T42Mc1zW3N+sztoVgCPDDp1fTlSqogEOPw2ioZIyjcUZxhQTi21Tk5la/dH/Y2bBuniDUVuou8l7JiU2XZ5UG5Qmk62Ictye7AkQ== 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 VI1PR0802MB2528.eurprd08.prod.outlook.com (2603:10a6:800:ad::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.16; Wed, 20 Oct 2021 17:47:58 +0000 Received: from VE1PR08MB5599.eurprd08.prod.outlook.com ([fe80::281b:cded:83ff:1856]) by VE1PR08MB5599.eurprd08.prod.outlook.com ([fe80::281b:cded:83ff:1856%3]) with mapi id 15.20.4628.016; Wed, 20 Oct 2021 17:47:58 +0000 From: Wilco Dijkstra To: "Lucas A. M. Magalhaes" , "libc-alpha@sourceware.org" , "naohirot@fujitsu.com" Subject: Re: [PATCH v3 2/5] benchtests: Add memset zero fill benchtest Thread-Topic: [PATCH v3 2/5] benchtests: Add memset zero fill benchtest Thread-Index: AQHXic6pwUgGMr/M+EiJzJ1juupCWaud9IkAgANrWQCAAN0/AIAAsoyAgADZ4peAATkoAIAI+UeAgACYzWSAAPQbAIAJdwsAgCArxwCAAy2ub4AAI0QAgAASUhw= Date: Wed, 20 Oct 2021 17:47:58 +0000 Message-ID: References: <20210805074733.433430-1-naohirot@fujitsu.com> <163456183281.2142698.11944761470468149892@localhost.localdomain> <163474414241.24618.5298374761029169472@localhost.localdomain> In-Reply-To: <163474414241.24618.5298374761029169472@localhost.localdomain> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: suggested_attachment_session_id: 7bdb6d11-1d87-f1d3-68b0-a37ee1c18c5d Authentication-Results-Original: linux.ibm.com; dkim=none (message not signed) header.d=none; linux.ibm.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 49d13d44-6608-443e-1362-08d993f1c6b8 x-ms-traffictypediagnostic: VI1PR0802MB2528:|DB9PR08MB6812: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:8882;OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: i6kpSGR/ISO0S/mDwUojrkFcKvgQyN1vW2048gkWBNWvJfiOLyP0iuVnpPaotXkuW7VoFasef7Hj33aymynFgQg3U57Hwn/gh8gw/p66gUKBPYpD5PZ6FxWTbxpBfMPdpJpr5ntMwjwQ7ZxHvEE78Rd0AoaLM6HhTaaT12LOWzHT6ESUBgE12/mfsGHykZ/4K7RgJwm3vMCYTEXr4OTnjpwseHJCAdtadjXqjekGTZkjZxWVee1xncUQn9+YHzYpA6rCqIFKyzNZ5RA2bh6pHxbH7AQH2qpSmpVxUid/sENUnNpspvsyyOcVpHx8v5khd4EY0Lfie2NHTSsk8itYHSiGc+zmOjPZGXDCAvtB8ZVZUeO75zhDfjfxGbRW9PI4TzhjbYHGuf5ZEli9YOX4RI6KFKUOtjIVOKzfNQTDOkIcT61SDg2IAT6VEo+Y8eRibczzGm6SHXXGv6gz2Jw+Ouf0+Dz4H7GSkMdbEuAdus9J1E/aiQZNlXagcQB5hahvXcENsaIj1/hBzW0hXvnHwsYRDTPQ4oIJFr2YH7+ab2LdK8DAcsDOvj5GynZL7K7G7yi4LI1ho6htluzfDgKaUhrQ7hryl85M9+bhGX3qRn7y4ceYvxs6hmNw+7l8aU6S7KMkMoOVETRnbzYnrztlyr1pvujhjlct81FxbcCQVr2gAyWsp3I6Myow4Qsxgc7dKJpT7pGoNmrC1LukVS+Klw== 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)(366004)(83380400001)(38070700005)(7696005)(71200400001)(33656002)(4326008)(9686003)(508600001)(66446008)(66476007)(186003)(64756008)(6506007)(66556008)(2906002)(52536014)(86362001)(110136005)(66946007)(55016002)(5660300002)(8676002)(76116006)(26005)(8936002)(38100700002)(122000001)(91956017)(4744005)(316002); DIR:OUT; SFP:1101; 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: VI1PR0802MB2528 Original-Authentication-Results: linux.ibm.com; dkim=none (message not signed) header.d=none; linux.ibm.com; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 38f77f65-5ccd-4c8b-a7bb-08d993f1c0e0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Yx1KyJ961BdcDfUhgeEauW0d0uBMYb3MixKCwWRQ6GXQpercdcGBDVmcXm9GOI9uMvT1PA8onue6UZNlwqmVYp72ZHWX+4edLfe4F8dOIajth41f/rJlw6OMtgXS77EjMjGQ3n4Ha0dtia+xKBLAmOFYAimo69FRjAT1Y+zMbCEF+ckcY4Cg6YJ1Yej+h2Kz9SpmJZ4HYPAxwuyJ2X/WQkrDqvPEMM/OKtKTfDYjfAHYi7iVqNAhTGuPtnrh/ciWJWYNMyA90Dmkp6Q+ygNB9LY/v3F0fAVYFgip1SXYT4dE6FrPJPEJDav4Zw4eZjlM3LB7DPUK5SpYXafaCUuK5Ui5/eaeMH4qLwayPcBTP2lEGfgjkGqVV84tK5znAm7pwmQLapa87to2DQ6uuXJ9AhQIcIhe7ZHONp5tOfDdgp7MJGDeZ/EtBNCDCZRNCAalXfzSfe1PxA7d/tafL4s19aZ5YHoWeWDS1YE1eUU93bf5+khiX8XpTvq5OQ7hiXyXbFkRjX0VljSOeO6IEdoj459ibvjroa/Ma35AtbAh6MM7QMjnN304BNMaw8PeLGSykTCMxsotNC2DsVZ5MrG4ALrx9GvPf8U6iAUJ1gRXo5oE1JoZbh+03BS36tDFEsCf9USavcvEkSJMTvVoKnp/dtDUGOYVerkF/3Nm/8ZOnVtV+Xmi+7g+uOrEosKU7eiBfKXzT0XGDyQ7Ps8TePLfdQ== 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)(46966006)(36840700001)(186003)(8936002)(26005)(33656002)(55016002)(6506007)(36860700001)(8676002)(86362001)(47076005)(82310400003)(336012)(70586007)(316002)(5660300002)(508600001)(52536014)(9686003)(4326008)(70206006)(356005)(110136005)(83380400001)(107886003)(81166007)(2906002)(4744005)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2021 17:48:07.9919 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49d13d44-6608-443e-1362-08d993f1c6b8 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: DB5EUR03FT028.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6812 X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Wed, 20 Oct 2021 17:48:16 -0000 Hi Lucas,=0A= =0A= > Sorry but I suppose don't understood your suggestion completely.=A0 The= =0A= > memset_value array will hold patterns like [0,0], [0,1] or [1,1],=0A= > right?=A0 If so, this will not work to measure the zero-to-one pattern fo= r=0A= > example, as it will be mixing zero-to-one with one-to-zero calls. In=0A= > order to measure just an specific patter the buffer must be loaded=0A= > previously of the timing loop.=0A= =0A= The original idea was to add more tests for memset of zero and check=0A= whether writing zero is optimized and/or writing zero over zero. There is= =0A= an equal number of 0->1 and 1->0 transitions in a pattern, so you can't=0A= easily differentiate between them, but you can tell whether they are the=0A= same or faster than 1->1 transitions.=0A= =0A= For 0->0 you can run different patterns with a varying number of transition= s=0A= but the same number of zeroes and ones: eg. 0000000011111111 (7 times 0->0)= =0A= vs 0011001100110011 (4 times 0->0) vs 0101010101010101 (no 0->0).=0A= =0A= Cheers,=0A= Wilco=