Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6297015rwl; Mon, 9 Jan 2023 06:43:45 -0800 (PST) X-Google-Smtp-Source: AMrXdXvenLfHnfpJudvRijPkZwS4GCzIWxPnJw0ROqMX+g0N0K4IOpd2zftgz4a/Fd5NhEjOEman X-Received: by 2002:a17:907:d606:b0:84c:d34a:b4e7 with SMTP id wd6-20020a170907d60600b0084cd34ab4e7mr22001977ejc.75.1673275425322; Mon, 09 Jan 2023 06:43:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673275425; cv=none; d=google.com; s=arc-20160816; b=iHmfIyhu1IrTS0ympb0rSEVdXTVDbTE41EhFiyb/XHrvcugndf6Y2ZW56CyOZwg0I3 3jI5AU4UdosDtJJXcBSX2wUaXM4Y2mQCvJcQpcznPG0AP7uswelDzh7fM9RSERLcPxRk CLuyYhmLeoM7WOCE1SAFetWo6OmgmOy2WQjvxV69vBrdTzGIpgEE7frk03pmpHvRkuUO PrZo0QVS9Wvtp2vqHPdZNrucnvcGKbjOXixiWJxcZBnuwtOlidgbwD9+UnM19F0mBZHY bqFId1SaXihOJrzWvmAWY3ivoxdRCWmlc1OCHlY96+ABfVpDGGNIFDKQzXlKEec/CaJ7 ghJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=YPibma/d9ac9CbUYSiW7xygA8Zd+TrAmvH2OaAjubBs=; b=JBsbJX3BIL8BRxWw29BMXKtEbZXrxMNHMVAZb2IWz+thpzsXWGds6TbqEjtwd5qNIJ uI7WpkYGeKQAk+XgNY52YI/tcmCVLDhCMuTp3iGdL7xOz5bShutbvWErloY10IxlhAqN KQSu7gD3D7GhFchPIr0Iok+/z+AbCxTzjX2keAGrfOvZwVPtvV0fYtYLVxPdNFiyHhzs yjqiAS15wMkxLy+bzq5IWQaFpqmLG0R/RZdFfd8VMnjlgoXvclLAzYMg9r5LF3A/jH7S lvNMpMcOyoTagN5pbj6vqv2629XJSD7Gdya6vjabv6NHHYzi5DpZsB+TYbEW7Xc6TdER 3QEA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga10-20020a1709070c0a00b0084d7c9a5e5esi1191035ejc.101.2023.01.09.06.43.32; Mon, 09 Jan 2023 06:43:45 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233236AbjAIOb0 (ORCPT + 53 others); Mon, 9 Jan 2023 09:31:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233309AbjAIObT (ORCPT ); Mon, 9 Jan 2023 09:31:19 -0500 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A44A51CFF3 for ; Mon, 9 Jan 2023 06:31:09 -0800 (PST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 309EUxDW029407; Mon, 9 Jan 2023 15:30:59 +0100 Date: Mon, 9 Jan 2023 15:30:59 +0100 From: Willy Tarreau To: Geert Uytterhoeven Cc: "Theodore Ts'o" , Pavel Machek , kernel list , Andrew Morton Subject: Re: Dhrystone -- userland version Message-ID: <20230109143059.GB25476@1wt.eu> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 Hi Geert, On Mon, Jan 09, 2023 at 10:28:09AM +0100, Geert Uytterhoeven wrote: > Hi Ted, > > On Mon, Jan 9, 2023 at 1:45 AM Theodore Ts'o wrote: > > On Sun, Jan 08, 2023 at 07:47:07PM +0100, Pavel Machek wrote: > > > > However, as this is not Linux-specific, how hard can it be to convince > > > > your distro to include https://github.com/qris/dhrystone-deb.git? > > > > Usually, when I have a full userspace available, I just clone the above, > > > > and debuild it myself. > > > > > > Dunno. I'd not solve it if package was in Debian, but it is not. > > > > I would suspect the better long-term solution would be to get the > > package into Debian, since that will be easier for people to use. I > > suspect the reason why most distros don't include it is because it > > really is a **terrible** benchmark for most use cases. > > My use case is verifying the CPU core clock rate when working on > the clock driver and/or cpufreq. I can easily measure e.g. SPI or > UART clock rates > externally, but not CPU core clock rates. Then maybe you'd rather use this: https://github.com/wtarreau/mhz E.g.: $ ./mhz 10 count=1666675 us50=20089 us250=100748 diff=80659 cpu_MHz=4132.645 tsc50=42427696 tsc250=212780620 diff=102 rdtsc_MHz=2112.014 count=1666675 us50=20271 us250=101282 diff=81011 cpu_MHz=4114.688 tsc50=42813060 tsc250=213905908 diff=102 rdtsc_MHz=2111.970 count=1666675 us50=20405 us250=100344 diff=79939 cpu_MHz=4169.867 tsc50=43094116 tsc250=211927426 diff=101 rdtsc_MHz=2112.027 count=1666675 us50=20239 us250=100249 diff=80010 cpu_MHz=4166.167 tsc50=42744302 tsc250=211727114 diff=101 rdtsc_MHz=2112.021 count=1666675 us50=20182 us250=100482 diff=80300 cpu_MHz=4151.121 tsc50=42624768 tsc250=212217884 diff=101 rdtsc_MHz=2111.994 count=1666675 us50=20153 us250=100151 diff=79998 cpu_MHz=4166.792 tsc50=42562818 tsc250=211519326 diff=101 rdtsc_MHz=2112.009 count=1666675 us50=20281 us250=99803 diff=79522 cpu_MHz=4191.733 tsc50=42832298 tsc250=210784252 diff=100 rdtsc_MHz=2112.019 count=1666675 us50=20104 us250=99841 diff=79737 cpu_MHz=4180.431 tsc50=42461284 tsc250=210862414 diff=101 rdtsc_MHz=2111.957 count=1666675 us50=20088 us250=100287 diff=80199 cpu_MHz=4156.349 tsc50=42423974 tsc250=211807066 diff=101 rdtsc_MHz=2112.035 count=1666675 us50=20178 us250=99913 diff=79735 cpu_MHz=4180.536 tsc50=42614718 tsc250=211016124 diff=101 rdtsc_MHz=2112.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 :-)). Just my two cents, Willy