pull/335/head
Sean McBride 3 years ago
parent 231096682a
commit a11136f899

@ -13,10 +13,10 @@ debug:
SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert --eval-command="run spec.json" SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert --eval-command="run spec.json"
client: client:
curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" "${HOSTNAME}:10000" curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" "${HOSTNAME}:10000/gocr"
client2: client2:
curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@../handwriting/handwrt1.pnm" "${HOSTNAME}:10000" curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@../handwriting/handwrt1.pnm" "${HOSTNAME}:10000/gocr"
client3: client3:
curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@../fivebyeight/5x8.pnm" "${HOSTNAME}:10000" curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@../fivebyeight/5x8.pnm" "${HOSTNAME}:10000/gocr"

@ -21,7 +21,7 @@ experiment_client() {
local -ir total_count=10 local -ir total_count=10
for ((i = 0; i < total_count; i++)); do for ((i = 0; i < total_count; i++)); do
result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" "$hostname:10000" 2> /dev/null) result=$(curl -H 'Expect:' -H "Content-Type: text/plain" --data-binary "@hyde.pnm" "$hostname:10000/gocr" 2> /dev/null)
if [[ "$result" == "$expected_result" ]]; then if [[ "$result" == "$expected_result" ]]; then
((success_count++)) ((success_count++))
else else

@ -1,12 +1,16 @@
[ [
{ {
"name": "gocr", "name": "gwu",
"path": "gocr.wasm.so",
"port": 10000, "port": 10000,
"expected-execution-us": 5000, "routes": [
"relative-deadline-us": 360000, {
"http-req-size": 5335057, "route": "/gocr",
"http-resp-size": 5335057, "path": "gocr.wasm.so",
"http-resp-content-type": "text/plain" "expected-execution-us": 5000,
"relative-deadline-us": 360000,
"http-resp-size": 5335057,
"http-resp-content-type": "text/plain"
}
]
} }
] ]
Loading…
Cancel
Save