TSRPC_Test/benchmark/config/BenchmarkConfig.ts
2022-04-29 15:25:10 +08:00

13 lines
427 B
TypeScript
Raw 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.

export const benchmarkConfig = {
/** 压测使用的APIServer */
server: 'http://127.0.0.1:3000',
/** 一共运行几次压测事务 */
total: 200000,
/** 同时并发的请求数量 */
concurrency: 100,
/** API请求的超时时间超时将断开HTTP连接释放资源前端默认为10 */
timeout: 10000,
/** 是否将错误的详情日志打印到Log */
showError: false
}