chore: make demo workloads more realistic

main
Sean McBride 5 years ago
parent 94f69a912c
commit da0588ea32

@ -1,10 +1,10 @@
LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" ./awsmrt ../tests/test_fibonacci_multiple.json
# fib(40)
# fib(20)
ab -n 10000 -c 1000 -p post_body.txt -v 4 localhost:10000/
ab -n 100000 -c 100 -p post_body.txt -v 4 localhost:10000/
# fib(10)
ab -n 1000 -c 100 -p post_body2.txt -v 4 localhost:10001/
ab -n 100000 -c 100 -p post_body2.txt -v 4 localhost:10001/

@ -142,10 +142,11 @@ sandbox_build_and_send_client_response(struct sandbox *sandbox)
done:
assert(sndsz == sandbox->request_response_data_length);
sandbox->total_time = __getcycles() - sandbox->start_time;
uint64_t end_time = __getcycles();
sandbox->total_time = end_time - sandbox->start_time;
uint64_t total_time_us = sandbox->total_time / runtime_processor_speed_MHz;
printf("%s():%d, %d, %lu\n", sandbox->module->name, sandbox->module->port,
printf("%s():%d, %u, %lu\n", sandbox->module->name, sandbox->module->port,
sandbox->module->relative_deadline_us, total_time_us);
#ifndef USE_HTTP_UVIO

@ -3,7 +3,7 @@
"name": "fibonacci",
"path": "fibonacci_wasm.so",
"port": 10000,
"relative-deadline-us": 50000000,
"relative-deadline-us": 80000,
"argsize": 1,
"http-req-headers": [],
"http-req-content-type": "text/plain",
@ -17,7 +17,7 @@
"name": "fibonacci2",
"path": "fibonacci_wasm.so",
"port": 10001,
"relative-deadline-us": 50000,
"relative-deadline-us": 8000,
"argsize": 1,
"http-req-headers": [],
"http-req-content-type": "text/plain",

Loading…
Cancel
Save