loadtest

command
v0.0.0-...-7bbd703 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 17 Imported by: ? 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

loadtest 是 LiteTalk SFU 的无头压测工具:模拟 rooms×users 个真实客户端 (WS 信令 + Pion PeerConnection + 50pps 哑 RTP),量化转发性能。

用法(需先启动服务端,dev-token 模式):

LITETALK_DEV_AUTH=1 go run ./cmd/server
go run ./cmd/loadtest -rooms 10 -users 10 -duration 5m -addr 127.0.0.1:8077 -token dev-load

退出码:0 = 达标;1 = 丢包率超阈值或连接失败;2 = 参数/环境错误。

Jump to

Keyboard shortcuts

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