Ai
1 Star 0 Fork 0

youc3576/proxy-redis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 967 Bytes
一键复制 编辑 原始数据 按行查看 历史
youc3576 提交于 2020-03-30 10:53 +08:00 . init
default:
# no task specified. exit, do nothing
exit 1
run:
# Maintaining a separate file since it has several useful instructions / debugging hacks
docker-compose stop proxy-redis
./scripts/run.sh
test:
docker-compose build proxy-test
docker-compose run proxy-test
docker-compose build proxy-build
stop:
docker-compose stop
docker-compose rm
benchmark:
# Work in progress for detailed benchmark
# Does not keep connection alive for multiple requests
# Refer README for gotchas
# Only stderr logs showing up in docker mode
docker-compose run benchmark
concurrency_level=32
num_requests=1000000
single_key_get_url="http://proxy:8080/v1.0/proxy?key=a1"
keep_alive="-k" # NOTE: This is to enable the HTTP KeepAlive feature, i.e., perform multiple requests within one HTTP session. Default is no KeepAlive
benchmark_ab:
docker-compose run --rm benchmark_ab $(keep_alive) -c $(concurrency_level) -n $(num_requests) $(single_key_get_url)
all: stop test run
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/youc-project/proxy-redis.git
git@gitee.com:youc-project/proxy-redis.git
youc-project
proxy-redis
proxy-redis
master

搜索帮助