Re: test_json_parser/002_inline is kind of slow - Mailing list pgsql-hackers

From Andres Freund
Subject Re: test_json_parser/002_inline is kind of slow
Date
Msg-id h7eplq2hsfioky4r6hvq2hy75dlhtdn5jhnf2y26wvznh7otdb@vh45vevnnj6i
Whole thread Raw
In response to Re: test_json_parser/002_inline is kind of slow  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: test_json_parser/002_inline is kind of slow
List pgsql-hackers
Hi,

On 2025-09-26 08:33:08 -0700, Jacob Champion wrote:
> On Fri, Sep 26, 2025 at 8:12 AM Robert Haas <robertmhaas@gmail.com> wrote:
> > Basically anything that would allow us to do multiple tests
> > without having to fork a new process for every single one seems like
> > it would probably save quite a bit.
> 
> Agreed, it's pretty inefficient. (For comparison, it runs in about two
> seconds on my machine, so I hadn't noticed how bad it had gotten.
> Thanks for pointing it out.)
> 
> The hammer I had available at the time was
> Perl-plus-compiled-executable.

You can just support running multiple tests with one run of the executable,
e.g. by splitting the input / output on null bytes.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: test_json_parser/002_inline is kind of slow
Next
From: David Christensen
Date:
Subject: Re: [PATCH] GROUP BY ALL