From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A2F451F7BB for ; Mon, 10 Jun 2024 11:34:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1718019267; bh=kR9UpTJP31Cljfh8t8ophNuwx7dQLO+zEUugh8bcZ3M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=skBTCQKXHZyanjuGvqyMD2/JoruiJAGfw6NFh+E20xEuunTA4/Fyw15+1ZAs1pZdH /+Eg0v5EqmqgzTnzJ4I1HPpTuch7Pmnwc8DXGAfqPqjM7VVkVkvSbXVNIu+mGzhK/J wfvbTdDL08szCY+YdtafRI+8n2vsWDeY6FZNvP8Q= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/2] xt/perf-threading: modernize + remove Xapian dependency Date: Mon, 10 Jun 2024 11:34:26 +0000 Message-ID: <20240610113427.122371-2-e@80x24.org> In-Reply-To: <20240610113427.122371-1-e@80x24.org> References: <20240610113427.122371-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Threading hasn't required Xapian (only SQLite) for a while now; but I'm revisiting this test for another minor optimization. --- xt/perf-threading.t | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xt/perf-threading.t b/xt/perf-threading.t index 57e9db9b..24c1a873 100644 --- a/xt/perf-threading.t +++ b/xt/perf-threading.t @@ -1,18 +1,16 @@ -# Copyright (C) 2016-2021 all contributors +#!perl -w +# Copyright (C) all contributors # License: AGPL-3.0+ # # real-world testing of search threading -use strict; -use warnings; +use v5.12; use Test::More; use Benchmark qw(:all); use PublicInbox::Inbox; my $inboxdir = $ENV{GIANT_INBOX_DIR} // $ENV{GIANT_PI_DIR}; plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless $inboxdir; my $ibx = PublicInbox::Inbox->new({ inboxdir => $inboxdir }); -eval { require PublicInbox::Search }; -my $srch = $ibx->search; -plan skip_all => "$inboxdir not configured for search $0 $@" unless $srch; +$ibx->over or plan skip_all => "$inboxdir not indexed for $0 $@"; require PublicInbox::View;