loadtest

package
v1.8.1 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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