Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6753379rwl; Mon, 9 Jan 2023 12:33:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXtaTwlcktevI2fYmYEsAS+NvvDKJCFH3u1yKsUkJNfuMsguxTNMWcZRPVmyk7E2I2DViN9z X-Received: by 2002:a05:6a00:bca:b0:581:4ab0:abcd with SMTP id x10-20020a056a000bca00b005814ab0abcdmr51335103pfu.14.1673296435291; Mon, 09 Jan 2023 12:33:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673296435; cv=none; d=google.com; s=arc-20160816; b=uom3ENX7BcKK2fHrTyiwPXUlbkXNEVYNmnEM1gbQVKzQBFMB/rb2ee9hjLdohZKlLL JCxLFBWEssf5To4BorzY9Za5wu/6Dh1Yg55tjNyXZ335i6lIryJrWx9QNnn0csT/FPgj DWXR//+YmW+UJT16NlZ3eoprfCGKMiLAPtr13Jb7TInH9soKuTkSlBPhqpZZ4f/dbDUN xjWF2GSZQ2PrSjPlqbNd3iNClwOLS/e2n83kDulIPZ/7rkTHSuO+l+ftP7FLCKX8Kjnp ZP7vUDgps8KgSanxBT6R8qOCanLv4pBapJI5C+/Y52XJDcF1xFDsTnruMflTL75morxA xdLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DWq0SZ79s+SaoYdcQ2Lj4BMZF7mqwSGo8Vowg6siQvo=; b=niW0ynFgG4o9tA1KMbUwFLRUlAYYgnvLKoc2mnHkgmEIze5+3XQkoXvv6omrSdQgA4 6gdlCcxMIizxe/h5itTSTL1kC1kzrLRmv+dhksK/sZ4hZa9AandnOQGnIhsUPaf2OrFI EjCVzqVApRhI0JIWh4fLVbE+U6PCSw+0JheCjzWkOLks8koz5KAX8oT+5+WT367kGYgQ nEZM8cr2rthEuOMgn7pGuUAB7P1swXHqLPLixZMg2XbuOAzPstCPSsz1xydCUzJXsM1g WlMr4J8vSBxHnsZFf4cpWsxpxeesyoso/XAnhMBBGSnW4MxV+dnjjb3pT2jOcd35yoOJ Eysw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=NX3CXEma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cn15-20020a056a00340f00b00574e84f7ee7si9718818pfb.174.2023.01.09.12.33.48; Mon, 09 Jan 2023 12:33:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=NX3CXEma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236688AbjAITw2 (ORCPT + 53 others); Mon, 9 Jan 2023 14:52:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237618AbjAITwG (ORCPT ); Mon, 9 Jan 2023 14:52:06 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D38B1868E for ; Mon, 9 Jan 2023 11:51:46 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id A49621C0A11; Mon, 9 Jan 2023 20:51:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1673293904; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DWq0SZ79s+SaoYdcQ2Lj4BMZF7mqwSGo8Vowg6siQvo=; b=NX3CXEmaCA4E85Ou2EmJUOdYTWiGUnKt2ViEXVS04Xbx/+ewnAciRjVEuGou7tb29NTgrl 1t0OzKobVLOR3DSfkrJ2V255VuFyVxhQWt45SxlKeN8V269P/V2C26fVt5aLvdREqJ9H3J n9uVx8dgOzMAB96/Sdpg/pq3YsE60T4= Date: Mon, 9 Jan 2023 20:51:44 +0100 From: Pavel Machek To: Geert Uytterhoeven Cc: Willy Tarreau , Theodore Ts'o , kernel list , Andrew Morton Subject: Re: Dhrystone -- userland version Message-ID: References: <20230109143059.GB25476@1wt.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VsORvAF1Yc5f5643" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --VsORvAF1Yc5f5643 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > count=3D1666675 us50=3D20178 us250=3D99913 diff=3D79735 cpu_MHz=3D418= 0.536 tsc50=3D42614718 tsc250=3D211016124 diff=3D101 rdtsc_MHz=3D2112.014 > > > > It's also what's used by sbc-bench to verify that CPU vendors are not > > cheating in the embedded world. It's very simple, and not arch-dependent > > nor compiler-dependent (at least as long as you don't build at -O0 :-)). >=20 > Seeing the rdtsc stuff, I was a bit skeptical, but it seems to work > fine on arm32 and rv64. >=20 > Unfortunately you forgot to add a LICENSE file ;-) >=20 > Alternatively, I can use the C version of BogoMIPS. Which has its > own merits and reputation. I'd expect BogoMIPS to be _much_ worse than Dhrystone. If all the cores are same, it should be good enough, but... > The nice thing about Dhrystones is that people still publish numbers > for comparison, also DMIPS/MHz and DMIPS/mW. =2E..and there seems to be no replacement for that. Dhrystones seem to become the standard in RISC-V community at least. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --VsORvAF1Yc5f5643 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY7xwUAAKCRAw5/Bqldv6 8uzGAJ9z8KFcrH+do8dyqDy4rnhqr3OnowCgrPUcz68YUTovc951wVDN9S8TCEM= =T64f -----END PGP SIGNATURE----- --VsORvAF1Yc5f5643--