owpengram-server/internal/loadtest/doc.go
2026-06-04 01:37:39 +08:00

13 lines
648 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package loadtest 承载 message 模块的压测基线。
//
// 这里只放 env-gated 的压测用例(真实 PostgreSQL + Redis不被生产代码 import。
// 目标与基线方法见 docs/message-module.md 的「Load Baseline」一节。
//
// 运行方式PowerShell
//
// $env:TELESRV_TEST_POSTGRES_DSN = "postgres://telesrv:telesrv@localhost:5432/telesrv?sslmode=disable"
// $env:TELESRV_TEST_REDIS_ADDR = "localhost:6399"
// go test ./internal/loadtest/ -run TestMessageSendBaseline -v -count=1
//
// 未设置上述两个环境变量时用例直接 Skip因此对默认 `go test ./...` 无副作用。
package loadtest