⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bench_http.sh

📁 The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword b
💻 SH
字号:
#!/bin/sh## Run a simple HTTP benchmark.## Lars Wirzeniusset -ecase "$1" in--fast) times=1000; shift ;;*) times=100000 ;;esacport=8080. benchmarks/functions.incrm -f bench_http.logtest/test_http_server -v 4 -l bench_http.log -p $port &sleep 1test/test_http -q -v 2 -r $times http://localhost:$port/footest/test_http -q -v 2 http://localhost:$port/quitwaitawk '/DEBUG: Request for/ { print $1, $2 }' bench_http.log  |test/timestamp | uniq -c | awk '    NR == 1 { first = $2 }    { print $2 - first, $1 }' > bench_http.datplot benchmarks/bench_http "time (s)" "requests/s (Hz)" "bench_http.dat" ""sed "s/#TIMES#/$times/g" benchmarks/bench_http.txtrm -f bench_http.logrm -f bench_http.dat

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -