Skip to content

ci(benchmarking): test the variance of the benchmarking rig #1206

Open
@dshemetov

Description

@dshemetov

The new Locust CI system by @rzats is very cool and convenient! In order to increase our trust in the system, we should get some baseline numbers about how it works.

My main question is: what sort of variance should we expect in the benchmark numbers from run to run?

There are many factors that could contribute to this variance, including:

  1. the hardware that GH provisions us for the particular job run
  2. the proximity of the hardware to our staging database
  3. the load on GH's networks
  4. the load on the hardware that GH provisions us (since CI runs in a multi-tenant VM)

Without worrying about specifically any of these factors, but instead approaching the system as a whole, I propose that we do the following to test:

  1. open up a new PR
  2. choose a large query set (~1000 queries)
  3. trigger the benchmarking CI once every X minutes for about Y hours (e.g. X = 10, Y = 12)
  4. compile the output and get a sense of the variance in the benchmarks over time

Running the benchmarks over a long time will help us see how much GH load affects us.
Running the benchmarks over a short time will help us see how much variance there is even with the same GH load.

EDIT:
h/t @rzats found this link on GH Actions Perf Stability

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions