Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.45 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.45 KB

Component benchmarks

This is the benchmark suite for the PostgreSQL data connector.

Running run.sh with a benchmark name as an argument will:

  1. build the PostgreSQL data connector Docker image,
  2. start the database with Chinook data,
  3. start the agent using an associated NDC metadata file, and
  4. run a benchmark using k6.

Running without arguments will list available benchmarks.

Everything is run through Docker Compose.

The Docker image for the agent is built with Nix. If you haven't built with Nix before (or it's been a while), this may take some time at first.

Requirements

  1. Nix, to build the Docker image
    1. Install Nix
    2. Configure Nix by adding the following line to ~/.config/nix/nix.conf:
      extra-experimental-features = flakes nix-command
      
  2. Docker and Docker Compose, to run the containers (see the root README)

Viewing the benchmark results

When the benchmarks finish, the results will be printed.

There is a Grafana dashboard which can be viewed as follows:

  1. Open [http://localhost:64300][].
  2. Open the menu on the left and choose "Dashboards".
  3. Choose the "Test Result" dashboard.

Adding a benchmark

You can add a benchmark by copying one of the files in the "benchmarks" subdirectory and altering it.

Please make sure that the name of the file corresponds to the testid.

For further information, consult the k6 documentation.