loadtest

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package loadtest builds the large data set the load tests and the benchmarks run against (review 2026-11 OP-9): a "Load test" workspace with a million contacts (by default), three lists, three sent campaigns with a message per recipient and their delivery events spread over five months. Rows are generated in Postgres, so a million contacts take minutes, not hours.

Index

Constants

View Source
const Slug = "load-test"

Slug is the load test workspace's slug.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Workspace store.Workspace
	Contacts  int64
	Messages  int64
	Events    int64
	Took      time.Duration
}

Result says what Seed made.

func Seed

func Seed(ctx context.Context, pool *pgxpool.Pool, contacts int, log *slog.Logger) (Result, error)

Seed makes the workspace and its data. It refuses when the workspace exists already; an instance user owns it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL