添加压测脚本run_stress_code_js1.sh和stress_code_js1.py,用于对code_js1接口进行并发压力测试 生成压测结果JSON文件,包含请求统计、延迟和吞吐量等指标
29 lines
609 B
JSON
29 lines
609 B
JSON
{
|
|
"url": "http://127.0.0.1:9898/api/dynamic/code_js1",
|
|
"method": "POST",
|
|
"total": 100,
|
|
"concurrency": 20,
|
|
"timeout_sec": 5.0,
|
|
"ok": 100,
|
|
"errors": 0,
|
|
"has_data": 100,
|
|
"duration_ms": 486.8026250042021,
|
|
"throughput_rps": 205.42206402263503,
|
|
"status_counts": {
|
|
"200": 100
|
|
},
|
|
"latency_ms": {
|
|
"min": 56.31004192400724,
|
|
"avg": 94.25131994648837,
|
|
"max": 153.34666694980115,
|
|
"p50": 79.22116597183049,
|
|
"p90": 147.41216704715043,
|
|
"p95": 151.8984999274835,
|
|
"p99": 152.9659579973668
|
|
},
|
|
"resp_size_bytes": {
|
|
"avg": 556,
|
|
"min": 556,
|
|
"max": 556
|
|
}
|
|
} |