Received: by 10.223.185.116 with SMTP id b49csp399255wrg; Fri, 23 Feb 2018 00:07:54 -0800 (PST) X-Google-Smtp-Source: AH8x225gn9S8T1wJSHsUnm/JzvULpzS7uvxXpHjcsxsilaijjgIdo5Djjuf/hMY7aiBhrGA75e7o X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr928452plb.77.1519373274738; Fri, 23 Feb 2018 00:07:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519373274; cv=none; d=google.com; s=arc-20160816; b=0bMcrPmw3+pqGlH6a6h9W5CIh0C7rZPOwn207MV9eVQ1gEmI7VuLlN8BYcLcoj1uCN w/24YmsnFwZbNjcRKALAaDw2Sd8BTaVgy23FXA2uOG8Bb+mahD3S5xtnEcL0wUY7oKed szDcOrTIPINerWmEc5ytKlxj/okl2xWMtodognfKphpb9HUI9NKt9H7HhYzSUClRsPHC rGX7hYod7/huuB0vzYNm5hbWIr+9NM/+Xf1vlbyb7YXsjbkRfl4ROT5w+fUXdnXQYe1p nlu7joI+mcC3ZEc4SPlraK7XE1xSPEnXKWR8Wu+jNpyxW1juRiAOu0cComKhhFLfUQu6 nr4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=mChcsXomedSlQkmre3nogrhKXlHcAbY6ub8sIWB7DTE=; b=ZnN/948MJOC35Nq/1fD54ne9df5HOSnPg6/v0+Nbzl9xLiIfMzCCHVdBmq9XAHaEGW Nvqg4aRVFhchD/RVoJMGYaIUwCqG06kU4k2KNJOkkz377ONdAK7uvaiCyW7HDXHrvEd/ YmAiOYGRjsRu51jPIRdBvj1KNdllYuAgchRjbsCltrlVT+Wa8WkmSvbBTbroub3l43vz q5Wt6lCauT/KT8SY4nZff7+E17CiAbSfY1OGaq7VDb+vkmbd7D/cktZMQJKu4vldIVSM QbvygmvYP1p3XOqZeCXGk+7NOWFMRm9JM8Wtx4KnwcAV6lAm121oNbss1Uk0jZpQKH3T mgvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si1406547plk.192.2018.02.23.00.07.37; Fri, 23 Feb 2018 00:07:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbeBWIG4 (ORCPT + 99 others); Fri, 23 Feb 2018 03:06:56 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:33512 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbeBWIGz (ORCPT ); Fri, 23 Feb 2018 03:06:55 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 18A3A801AF; Fri, 23 Feb 2018 09:06:53 +0100 (CET) Date: Fri, 23 Feb 2018 09:06:53 +0100 From: Pavel Machek To: Kees Cook Cc: Shuah Khan , Fengguang Wu , Laura Abbott , Tycho Andersen , Steven Rostedt , Kevin Hilman , Thomas Gleixner , "Kirill A. Shutemov" , LKML Subject: Re: collecting simple benchmark scripts? Message-ID: <20180223080653.GA1584@amd> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5mCyUwZo2JvN/JJP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > In a separate thread, some folks were looking for some simple > benchmarks for evaluating various changes to kernel internals (as > opposed to the much more focused things like xfstests). For me, this > has been an area of lore and passed-around scripts, and it seems like > maybe we should have a subdirectory of tools/testing/benchmarks/ or > something to collect these? >=20 > (Or maybe this already exists and I've totally missed it?) >=20 > I've got at least one micro-benchmark in > tools/testing/selftests/seccomp/seccomp_benchmark.c, and searches show > tools/testing/selftests/vm/gup_benchmark.c too, but I was thinking of > either more generali things more like the famous "kernel build > benchmark" or a wrapper for running hackbench to get some statistics > out of it, etc. Ok, I guess my micro-benchmark is too micro for you, but I like to use "time cat /dev/urandom | head -c 10000000 | bzip2 -9 - | wc -c" I have a page with various results online somewhere, probably at http://atrey.karlin.mff.cuni.cz/~pavel/quickbench.html Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --5mCyUwZo2JvN/JJP Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlqPy50ACgkQMOfwapXb+vI/egCff+688Yo4uHAOQsMd5gqqVbSR Mx0An2HFbbQg21tRMlBHrhAMCKYLKbzY =RgoI -----END PGP SIGNATURE----- --5mCyUwZo2JvN/JJP--