From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F06EFC433C1 for ; Tue, 23 Mar 2021 14:02:58 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E94161992 for ; Tue, 23 Mar 2021 14:02:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E94161992 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:40598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOhcX-0004Jh-Ew for qemu-devel@archiver.kernel.org; Tue, 23 Mar 2021 10:02:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOhOW-0007F5-1F; Tue, 23 Mar 2021 09:48:28 -0400 Received: from mail-eopbgr80108.outbound.protection.outlook.com ([40.107.8.108]:57092 helo=EUR04-VI1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOhOT-0001wR-VZ; Tue, 23 Mar 2021 09:48:27 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UwKb7WjyXMNnwuyK+FjLdypjBXSethHwtpE92EPwxCEd42XrTbRi8NhlcVxvM+DPg7SA4ftE4yO9OGCUv2/YWCeI1ZnNyneCpRynu5lVkYSaR5r9CzXTqHNfa8gfR0/wnpACyS5WhX+0Pe4qLlG06hl8EGr5EJXQ7M5wbY0VBGb5BHHqgS6HqhpPF4JL2EvVlwL3gEXyb44nAJ7xyjKowiV2YFPSd+mqGfUKdelRNQF2z69LokKBUPGsFMjCQ2mxsRhq5IrKxuK5vkeRq8qarLMJ3BxeEdlSu6RejX2fnpggxzA9EdDzZ4lnUouHzygmDHYa7zVvbZd/Y5ENn72nrg== 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-SenderADCheck; bh=A8LQU1ypnAYg+A00+udoj7tUB7p/guL2En4vz9Z7lOg=; b=QQDVLELDPwA41dDa7df/hueQq+p1q5PzVbxOyStmx6XpzOTUVEfyqRb7DJxj5RSbbf4Wh3RBm+1HhNN8f8OeX5Yslw82Q6UPUcQq7tk2tSzmJtIfnLjudhcOT9OcxHR4WCd0Edw0EwpWimJZhLdLTPCs/t7OTCWEW/3P36KsGZvsYv38tHfwpFII54cD0p+gUb8BFO2l+354ZIc0OPOZm7IVHhn3gIIrLVeTQp5HfvuQ55/cMoeA/H+DO2Ud1z+cwfQTxtqC3SWe/26jPJDWfXr1P+JnAuBYkt8gg19c+nIr1giW68/Z36PBtSjbl/vr6PKHwzPewTvI066fJONuUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=virtuozzo.com; dmarc=pass action=none header.from=virtuozzo.com; dkim=pass header.d=virtuozzo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=A8LQU1ypnAYg+A00+udoj7tUB7p/guL2En4vz9Z7lOg=; b=eHFHXeboL4s7q7tYck7YDJIDVBJxJfBbN1HFvk7rqfQTbjgQI58wfTD9tX4WHMS7FaYOiJxWOXrqu51AjrRCYhHmXl/2o9dO/3MF5DAtUeSt80x9G8uZB0MqnDBeXho1H77q8yd2HhjtqnSnDAbRMZr2Fqx3DCQQpPCF1RsKmBA= Authentication-Results: nongnu.org; dkim=none (message not signed) header.d=none;nongnu.org; dmarc=none action=none header.from=virtuozzo.com; Received: from AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) by AM5PR0801MB2034.eurprd08.prod.outlook.com (2603:10a6:203:4b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.25; Tue, 23 Mar 2021 13:48:06 +0000 Received: from AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::f1f0:6610:11f5:5e4a]) by AM7PR08MB5494.eurprd08.prod.outlook.com ([fe80::f1f0:6610:11f5:5e4a%7]) with mapi id 15.20.3955.027; Tue, 23 Mar 2021 13:48:06 +0000 From: Vladimir Sementsov-Ogievskiy To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, den@openvz.org, vsementsov@virtuozzo.com, mreitz@redhat.com Subject: [PATCH v3 7/9] simplebench/bench-backup: add --count and --no-initial-run Date: Tue, 23 Mar 2021 16:47:32 +0300 Message-Id: <20210323134734.72930-8-vsementsov@virtuozzo.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210323134734.72930-1-vsementsov@virtuozzo.com> References: <20210323134734.72930-1-vsementsov@virtuozzo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [185.215.60.202] X-ClientProxiedBy: HE1PR05CA0184.eurprd05.prod.outlook.com (2603:10a6:3:f8::32) To AM7PR08MB5494.eurprd08.prod.outlook.com (2603:10a6:20b:dc::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (185.215.60.202) by HE1PR05CA0184.eurprd05.prod.outlook.com (2603:10a6:3:f8::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Tue, 23 Mar 2021 13:48:05 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f2cb9ce6-130a-42c5-61fb-08d8ee0249af X-MS-TrafficTypeDiagnostic: AM5PR0801MB2034: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: al29mcwyqdRjMhC3pqU0+zBsawTKVfNQC8t13SajBY38lGcxiF6iAOnT/70wUsI+XRTaZF1H5vffRyFCfqHN9MO9+QgcGoje2qCfCu/p2yC8eee4O/8YSUmPU9ciZLNh2kxSnUJwQSdtJ9DeAQPKhVrISxw388xVQ6jHn1ACMGjU2cwQd63WKE1lV7VOCZZpBICqSaD/om57+j+VH311fIvVkS9GZEzZ0tCHwnOdSGuhe2hxT0AIBLQsPMvfA/6Z5sQm5epbMeY3cvH1x3Fjes9g5gEXwFFxBf3tfYoe4dHsWF0haKwVBlGEkxK+Apuk1IyeUUtEra4wxHf606Eah0CFGbJ3VKNG5WxQJJeOf0vlA3ElXQvkL+XPg1BRVl73ZPbuiJv68KEeoJMVQNtBPTzStQTh1MDCF31wKdbLpEf8tB5VWXWXNw7W4KbR/s1i+OmxIrtLSRtF90bwfLUXdVcqjM3/+PU1Nxmu9Vd3ajQxUzd5mjubr7CJtiIRy634Xp04kZGzK0TFVgfqE3g8hmJvYmEyFfn9kjXtkaPagfuP4sNzcJfiIcphw7DrUlz2MlUrVdbBwdH7OmTMNfhcNDcbXDI/lKLcEYikolAgb38yWpDBnWoF4JM1z/ijR6tiO8cAPcqiKtjJLMes30rbaulQP26xoU6cpJtKTwia2qpBwrBw8PRyFqj1nTrG6AFT X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR08MB5494.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(39830400003)(396003)(376002)(4326008)(186003)(1076003)(6506007)(52116002)(16526019)(66946007)(316002)(26005)(83380400001)(6512007)(6666004)(8936002)(2616005)(38100700001)(956004)(2906002)(8676002)(86362001)(66556008)(66476007)(36756003)(6916009)(69590400012)(6486002)(478600001)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?yX7BqD1lQfI81mNffV/c1rozjN6sK9D9AoFfoFYrWTI5yXE9q+uexN62u++7?= =?us-ascii?Q?Ju5TfnTg9z1UvH6SCc5m1G6zzUlksl/FFN24uMfMBBkPjc5BFaQ348ihmWTs?= =?us-ascii?Q?u31+ZRJ1hUiFAl0REmXb9DFQ8WjDccpbIcpe5K/ARDidCgik5fd1b+pQ8iH5?= =?us-ascii?Q?NG2zyLlXGzGKbt/g7fmLCwwBpe239gknaimREFcmgftAPpVGPXG1vMbAKnJ0?= =?us-ascii?Q?YftfhQDO+Gmq8j26egQFnZJ2ALhKVwuaJvnXkJJS08SWef8uzIsu93vOijRw?= =?us-ascii?Q?3WsvgXYe4gJF0y/WORRmUGSTnefShfAventxf6CyudkvFongkOOaNz+UF4bV?= =?us-ascii?Q?MUsemNo3bhdGx1p8oO6yRGTZcStFXG4aAGRMpf2S/0N37nEe6uQCQce/NMTi?= =?us-ascii?Q?grg3GVtTE1eBO3iSuxTA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ddCZ4mH7vObs59LUhWS/D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f2cb9ce6-130a-42c5-61fb-08d8ee0249af X-MS-Exchange-CrossTenant-AuthSource: AM7PR08MB5494.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2021 13:48:06.7944 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2vMN/yY7YLcEZyTsj6zDIjcZNWfPuaApUOMG52UTtA7/cX8XeGG/CGgOGhbkhfZDj5FyIOHN3OEDWWo4g35GuoqRgCTvUSbeIV8LLAlSfJo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB2034 Received-SPF: pass client-ip=40.107.8.108; envelope-from=vsementsov@virtuozzo.com; helo=EUR04-VI1-obe.outbound.protection.outlook.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Add arguments to set number of test runs per table cell and to disable initial run that is not counted in results. It's convenient to set --count 1 --no-initial-run to fast run test onece, and to set --count to some large enough number for good precision of the results. Signed-off-by: Vladimir Sementsov-Ogievskiy --- scripts/simplebench/bench-backup.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/simplebench/bench-backup.py b/scripts/simplebench/bench-backup.py index a2120fcbf0..092fed5816 100755 --- a/scripts/simplebench/bench-backup.py +++ b/scripts/simplebench/bench-backup.py @@ -155,7 +155,8 @@ def bench(args): 'qemu-binary': path }) - result = simplebench.bench(bench_func, test_envs, test_cases, count=3) + result = simplebench.bench(bench_func, test_envs, test_cases, + count=args.count, initial_run=args.initial_run) with open('results.json', 'w') as f: json.dump(result, f, indent=4) print(results_to_text(result)) @@ -211,4 +212,13 @@ def __call__(self, parser, namespace, values, option_string=None): both: generate two test cases for each src:dst pair''', default='direct', choices=('direct', 'cached', 'both')) + p.add_argument('--count', type=int, default=3, help='''\ +Number of test runs per table cell''') + + # BooleanOptionalAction helps to support --no-initial-run option + p.add_argument('--initial-run', action=argparse.BooleanOptionalAction, + help='''\ +Do additional initial run per cell which doesn't count in result, +default true''') + bench(p.parse_args()) -- 2.29.2