RUNTIME_DIR=../../runtime/ SLEDGE_BINARY_DIR=${RUNTIME_DIR}/bin SLEDGE_TESTS_DIR=${RUNTIME_DIR}/tests HOSTNAME=localhost all: run clean: make -C ${RUNTIME_DIR} clean make -C ${SLEDGE_TESTS_DIR} clean rm -f ${SLEDGE_BINARY_DIR}/html.wasm.so ${SLEDGE_BINARY_DIR}/sledgert: make -C ${RUNTIME_DIR} runtime .PHONY: sledgert sledgert: ${SLEDGE_BINARY_DIR}/sledgert ${SLEDGE_BINARY_DIR}/scratch_storage.wasm.so: make -C ../../applications scratch_storage.install .PHONY: scratch_storage_get scratch_storage_get: ${SLEDGE_BINARY_DIR}/scratch_storage_get.wasm.so .PHONY: scratch_storage_set scratch_storage_set: ${SLEDGE_BINARY_DIR}/scratch_storage_set.wasm.so run: sledgert scratch_storage_get scratch_storage_set LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} ${SLEDGE_BINARY_DIR}/sledgert spec.json debug: sledgert scratch_storage_get scratch_storage_set SLEDGE_DISABLE_PREEMPTION=true SLEDGE_NWORKERS=1 \ LD_LIBRARY_PATH=${SLEDGE_BINARY_DIR} gdb ${SLEDGE_BINARY_DIR}/sledgert \ --eval-command="handle SIGUSR1 noprint nostop" \ --eval-command="handle SIGPIPE noprint nostop" \ --eval-command="set pagination off" \ --eval-command="run spec.json" client-upsert-multi: hey -z 6s -cpus 4 -c 100 -t 0 -o csv -m GET "http://${HOSTNAME}:1337/upsert?test&wakka2" client-get-multi: hey -z 6s -cpus 4 -c 100 -t 0 -o csv -m GET "http://${HOSTNAME}:1337/get?test" client: http :1337/scratch_storage