mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-06-19 02:51:28 +00:00
코드 정리
This commit is contained in:
@ -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
|
Reference in New Issue
Block a user