benchmark scripts
This commit is contained in:
parent
f7da97c896
commit
7add711e05
4
benchmarks/benchmark_decrypt.sh
Executable file
4
benchmarks/benchmark_decrypt.sh
Executable file
@ -0,0 +1,4 @@
|
||||
ab -k -n 2000 -c 64 \
|
||||
-p decrypt_request.json -T application/json \
|
||||
http://127.0.0.1:8000/decrypt \
|
||||
> ab_decrypt.txt
|
||||
4
benchmarks/benchmark_encrypt.sh
Executable file
4
benchmarks/benchmark_encrypt.sh
Executable file
@ -0,0 +1,4 @@
|
||||
ab -k -n 200 -c 64 \
|
||||
-p encrypt.json -T application/json \
|
||||
http://127.0.0.1:8000/encrypt \
|
||||
> ab_encrypt.txt
|
||||
8
benchmarks/create_decrypt_request.sh
Executable file
8
benchmarks/create_decrypt_request.sh
Executable file
@ -0,0 +1,8 @@
|
||||
curl -sS http://127.0.0.1:8000/encrypt \
|
||||
-H "Content-Type: application/json" \
|
||||
--data-binary @encrypt.json \
|
||||
| jq -n --argfile ciphertext /dev/stdin \
|
||||
--arg u "alice" \
|
||||
--arg p "correct horse battery staple" \
|
||||
'{username:$u, password:$p, ciphertext:$ciphertext}' \
|
||||
> decrypt_request.json
|
||||
@ -2,8 +2,8 @@
|
||||
"username": "alice",
|
||||
"password": "correct horse battery staple",
|
||||
"ciphertext": {
|
||||
"c1": "XTLVdSI41jrdYZoy3yMObpUa6ZKE2p7eXEJyxNJGupq92ArGpIKZAIrHj0W69MNuaZDOXYQ4rNNetwaPfRKoYw==",
|
||||
"c2": "W/3NHpAN07IlktQgc8vTGPtSDUkqm2RJqH+ovtRbbRmeTOSqDelzshZPLubeeiiBWZ2eYqcwhyvBGq4zN77lFw==",
|
||||
"n": "KPeQdFyKETghj/5qj70MkSTD1rQ6TLcFiprzTnA+xwo="
|
||||
"c1": "0vfnHCz6t0/R5okIAorA7T20lgjpjO8/f8QDGXuICGV73lAL5NSbZcGEQE2mxTMCXYZdDYIdOYBEikSBvNFPbg==",
|
||||
"c2": "vrT0ECeHsn20CtnjnqhcYQv44hzihdNsmtZ+XU9urxKz3EMPeYZtHc61ucBPb/rq8co9hRyjYfZrBaWyFBlSxQ==",
|
||||
"n": "ec4lhew4AdybrXXmEhOW1uggPm2oqc2bVQzKUsuZhD0="
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user