From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 8F78A1F8C8 for ; Fri, 13 Aug 2021 08:25:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238857AbhHMIX6 (ORCPT ); Fri, 13 Aug 2021 04:23:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238598AbhHMIXr (ORCPT ); Fri, 13 Aug 2021 04:23:47 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9208C0617AD for ; Fri, 13 Aug 2021 01:23:20 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id k4so6336405wms.3 for ; Fri, 13 Aug 2021 01:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:in-reply-to:references:from:date:subject:mime-version :content-transfer-encoding:fcc:to:cc; bh=9N06sBMGSwslqzktoVL9OhM7KzXq4rCuo4jo7obxQWo=; b=mvK+HeAjgr1n8XD6NpALfu+NoZmsas8y4ToSjk5Cif8Y/eJiocBVcHxxIcdIUh/L6i 6XceF3ygfEr9GxYnguh52ISBhHrFHuQ1XYJy4BeLegBYfX4G1Y/jNz9qGXJz+6h7jnyf zy4hMrgzJgqro6bAoLWiiV16UYkzpaGqGylQgAT4r3Kp1iWPMVUKS0aONqfAjgCRf3xr Hb3A2Q+Yz4Pnu62pVm+qst1UCdnic7sIm15qbvBTVElpMaNOiO1LIaePs9hscH7wE5eq fl77dtEY0d7WtkGIvNYE8JwaFwBJvk0YrprqrHoY2FMSHmiq479ZdyPBot8/ZziC8RBR lxDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:mime-version:content-transfer-encoding:fcc:to:cc; bh=9N06sBMGSwslqzktoVL9OhM7KzXq4rCuo4jo7obxQWo=; b=TnFH4IiULXRgPykYApD2SOwXJ3q12x2Bs5lHBkh/ZLMU3mRRYLR2zIi4GMA0qx4la4 0Uc11CcUjFnEAdJGsW/h1Dgx/JR3iaJV+pLg+dkkc/AIfM3IMoyJFPXBeSbCIArNR8Y+ SKZOZb6dc2GtztHiwYCCowKCcKdzEE+3Obcalvo1KBzIQeOesfYAyk9QwHrEtTNVPV2B v8bxaepX2TJgd9HnBqPPVFU94JnXzEbzNs8QR0tpHR8sJJ+kw9HBYTYEUbCmGaeLK3p9 o1NlfGTkCJcdqTzHbd6Pc6NeW9DQL7ILf/UGkx+jzOQPHMTvZAy9THMs62Xtge0AFdf5 /8ow== X-Gm-Message-State: AOAM533mHE68lxrvFF+wi/QEE+ws1nY13EHdFx8iaW0cISMnMy6fNzM1 luQF2UWieC2yg/5+rFAQ993pSdpd7II= X-Google-Smtp-Source: ABdhPJw2b+dbu6DAc5JVy1PaKqW8CxhuveBfHYU4I7fGXdxQ60pD5sSA8nMt9bkv1Kld99QmVpIQjw== X-Received: by 2002:a05:600c:198e:: with SMTP id t14mr1381423wmq.167.1628842999421; Fri, 13 Aug 2021 01:23:19 -0700 (PDT) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id p4sm928696wrq.81.2021.08.13.01.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 01:23:19 -0700 (PDT) Message-Id: <1f72eb6e4e0f0e5eaeef2b45deebc81f2b611357.1628842990.git.gitgitgadget@gmail.com> In-Reply-To: References: From: "ZheNing Hu via GitGitGadget" Date: Fri, 13 Aug 2021 08:22:55 +0000 Subject: [PATCH 12/27] [GSOC] cat-file: create p1006-cat-file.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fcc: Sent To: git@vger.kernel.org Cc: Junio C Hamano , Christian Couder , Hariom Verma , Bagas Sanjaya , Jeff King , =?UTF-8?Q?=C3=86var_Arnfj=C3=B6r=C3=B0?= Bjarmason , Eric Sunshine , Philip Oakley , ZheNing Hu , ZheNing Hu Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: ZheNing Hu Create p1006-cat-file.sh to provide performance testing for `git cat-file --batch` and `git cat-file --batch-check`. This will help us compare the performance changes after we let cat-file reuse the ref-filter logic. Helped-by: Ævar Arnfjörð Bjarmason Mentored-by: Christian Couder Mentored-by: Hariom Verma Signed-off-by: ZheNing Hu --- t/perf/p1006-cat-file.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 t/perf/p1006-cat-file.sh diff --git a/t/perf/p1006-cat-file.sh b/t/perf/p1006-cat-file.sh new file mode 100755 index 00000000000..b84ac31f9cc --- /dev/null +++ b/t/perf/p1006-cat-file.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +test_description='Basic sort performance tests' +. ./perf-lib.sh + +test_perf_default_repo + +test_expect_success 'setup' ' + git rev-list --all >rla +' + +test_perf 'cat-file --batch-check' ' + git cat-file --batch-check