t/helper/fsmonitor-client: create stress test
commit49b398a970f6efa368114330da23ae69aeeb9c60
authorJeff Hostetler <jeffhost@microsoft.com>
Thu, 26 May 2022 21:46:57 +0000 (26 21:46 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 22:59:26 +0000 (26 15:59 -0700)
tree97ced722647552dd96a20aeb42f6a2e1da0e3dad
parent27b5d4171d90073e37c7c1233b6bcc95ba58ae1d
t/helper/fsmonitor-client: create stress test

Create a stress test to hammer on the fsmonitor daemon.
Create a client-side thread pool of n threads and have
each of them make m requests as fast as they can.

We do not currently inspect the contents of the response.
We're only interested in placing a heavy request load on
the daemon.

This test is useful for interactive testing and various
experimentation.  For example, to place additional load
on the daemon while another test is running.  We currently
do not have a test script that actually uses this helper.
We might add such a test in the future.

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-fsmonitor-client.c