코드 정리

This commit is contained in:
freestrings
2019-09-22 22:09:38 +09:00
parent c8ab8ad107
commit c3ac7e40e8
5 changed files with 4564 additions and 72 deletions

View File

@ -8,13 +8,18 @@ set -v
docker run -d --rm --name jsonpath \
-v "${PWD}/../../benchmark/example.json":/etc/jsonpath/example/example.json:ro \
-v "${PWD}/../../benchmark/big_example.json":/etc/jsonpath/example/big_example.json:ro \
-v "${PWD}/../jsonpath.lua":/etc/jsonpath/jsonpath.lua:ro \
-v "${PWD}/testa.lua":/etc/jsonpath/testa.lua:ro \
-v "${PWD}/init.lua":/etc/jsonpath/init.lua:ro \
-v "${PWD}/../target/release/deps/libjsonpath_lib.so":/etc/jsonpath/libjsonpath_lib.so:ro \
-v "${PWD}/default.conf":/etc/nginx/conf.d/default.conf \
-p 8080:80 \
openresty/openresty:bionic
sleep 1
curl http://localhost:8080/3
#for i in {1..16}; do
# curl http://localhost:8080/filter/example.json?path=${i}
# echo
#done
#ab -n 1000 -c 10 http://localhost:8080/filter/big_example.json?path=17
#ab -n 1000 -c 10 http://localhost:8080/filter/big_example.json?path=18