this app for Yao benchmark
启动 Gin server
./bin/gin
wrk -t12 -c400 -d30s http://127.0.0.1:8087/pure
准备测试网页
docker exec nginx sh -c 'echo "[1,2,3]" > /usr/share/nginx/html/pure.json'
wrk -t12 -c400 -d30s http://172.10.0.11/pure.json
wrk -t12 -c400 -d30s http://127.0.0.1:5099/api/flows/pure
wrk -t12 -c400 -d30s http://127.0.0.1:5099/api/flows/script
wrk -t12 -c400 -d30s http://127.0.0.1:5099/api/scripts/pure
准备测试数据
mkdir /tests
yao migrate --force --reset && yao run scripts.data.Test
10 行万用户数据
wrk -t12 -c400 -d30s http://127.0.0.1:5099/api/db/find/1
wrk -t12 -c400 -d30s "http://127.0.0.1:5099/api/db/search?page=42&pagesize=10"
10 行万用户数据 hasOne & hasMany
wrk -t12 -c400 -d30s "http://127.0.0.1:5099/api/db/find/2?with=manu"
wrk -t12 -c400 -d30s "http://127.0.0.1:5099/api/db/search?with=users&page=42&pagesize=10"
准备测试数据
yao migrate --force --reset && yao run scripts.data.Test
10 行万用户数据
wrk -t12 -c400 -d30s http://127.0.0.1:5099/api/db/find/1
wrk -t12 -c400 -d30s "http://127.0.0.1:5099/api/db/search?page=42&pagesize=10"
10 行万用户数据 hasOne & hasMany
wrk -t12 -c400 -d30s "http://127.0.0.1:5099/api/db/find/2?with=manu"
wrk -t12 -c400 -d30s "http://127.0.0.1:5099/api/db/search?with=users&page=42&pagesize=10"
调整兼容性,稍后启用