fibonacci serverless fn in awsm

main
phani 5 years ago
parent 645d138787
commit f8cc5edb89

@ -13,11 +13,11 @@ main(int argc, char **argv)
{
unsigned long n = 0, r;
scanf("%lu", &n);
unsigned long long st = get_time(), en;
// unsigned long long st = get_time(), en;
r = fib(n);
en = get_time();
fprintf(stderr, "%lu\n", r);
// en = get_time();
printf("%lu\n", r);
print_time(st, en);
// print_time(st, en);
return 0;
}

@ -25,7 +25,7 @@ MAXNUM=$2
tmp1_cnt=${MAXNUM}
while [ ${tmp1_cnt} -gt 0 ]; do
while [ ${tmp1_cnt} -gt 28 ]; do
testeach ./fibonacci_$1.out ${tmp1_cnt}
tmp1_cnt=$((tmp1_cnt - 1))
done

@ -0,0 +1,13 @@
{
"active" : "yes",
"name" : "fibonacci",
"path" : "fibonacci_wasm.so",
"port" : 10000,
"argsize" : 1,
"http-req-headers" : [ ],
"http-req-content-type" : "text/plain",
"http-req-size": 1024,
"http-resp-headers" : [ ],
"http-resp-size" : 1024,
"http-resp-content-type" : "text/plain"
}
Loading…
Cancel
Save