Skip to content

WasmFunction/wasmkeeper

Repository files navigation

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/

About

A simple http server that runs wasm functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published