From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755132AbdKIXPX (ORCPT ); Thu, 9 Nov 2017 18:15:23 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47428 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754502AbdKIXPW (ORCPT ); Thu, 9 Nov 2017 18:15:22 -0500 Date: Thu, 9 Nov 2017 15:15:20 -0800 From: Andrew Morton To: Yury Norov Cc: linux-kernel@vger.kernel.org, Alexey Dobriyan , Clement Courbet , Matthew Wilcox , Rasmus Villemoes Subject: Re: [PATCH] lib: test module for find_*_bit() functions Message-Id: <20171109151520.053425b697cd808206996e07@linux-foundation.org> In-Reply-To: <20171109140714.13168-1-ynorov@caviumnetworks.com> References: <20171109140714.13168-1-ynorov@caviumnetworks.com> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 9 Nov 2017 17:07:14 +0300 Yury Norov wrote: > find_bit functions are widely used in the kernel, including hot paths. > This module tests performance of that functions in 2 typical scenarios: > randomly filled bitmap with relatively equal distribution of set and > cleared bits, and sparse bitmap which has 1 set bit for 500 cleared bits. > > ... > > +config TEST_FIND_BIT Well. It doesn't actually "test" the code. It measures its performance ;)