Re: test_json_parser/002_inline is kind of slow

From: Andres Freund <andres(at)anarazel(dot)de>
To: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: test_json_parser/002_inline is kind of slow
Date: 2025-09-26 15:38:03
Message-ID: h7eplq2hsfioky4r6hvq2hy75dlhtdn5jhnf2y26wvznh7otdb@vh45vevnnj6i
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Christensen 2025-09-26 15:45:53 Re: [PATCH] GROUP BY ALL
Previous Message Andres Freund 2025-09-26 15:35:49 Re: test_json_parser/002_inline is kind of slow