Skip to content

Latest commit

 

History

History
63 lines (42 loc) · 942 Bytes

README.md

File metadata and controls

63 lines (42 loc) · 942 Bytes

wasmkeeper

A simple http server that runs wasm functions.

Required

Build

configure

set toolchainFile to the path of [vcpkg root]/scripts/buildsystems/vcpkg.cmake in CMakePresets.json:

{
  "version": 3,
  "configurePresets": [
    {
      ...
      "toolchainFile": "/home/youtirsin/vcpkg/scripts/buildsystems/vcpkg.cmake"
      ...
    }
  ]
}

and then run:

cmake --preset=default

build

cmake --build build --target wasmkeeper

run

build/wasmkeeper --netns xxx --mod-path ./example/func.wasm

test

curl -X POST -H "Content-Type: application/json" -d '{"args":["White", "Hank"]}' localhost:10086

# benchmark
ab -n 750 -c 10 -p data.json -T application/json http://localhost:10086/