Skip to content
/ wasp Public
forked from andeya/wasmesh

WebAssembly Service Porter

Notifications You must be signed in to change notification settings

mougeCM/wasp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasp

WebAssembly Service Porter.

Install

cargo install --git https://github.com/henrylee2cn/wasp.git

Will be installed to ~/.cargo/bin

try it

maybe pre-install:

rustup target add wasm32-wasi

build example:

git clone https://github.com/henrylee2cn/wasp.git
cd wasp/rust/simple
cargo build --release

serve it:

  • In wasp root path, fast run alias:
cargo run-simple-release

more alias

  • Directly use the command line:
wasp serve --threads=16 --http=127.0.0.1:9090 rust/examples/simple/target/wasm32-wasi/release/simple.wasm

Benchmark

  • MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
  • CPU: 2.3 GHz 4 Cores Intel Core i7
  • Mem: 32 GB 3733 MHz LPDDR4X
ab -c 100 -n 10000 http://127.0.0.1:9090/

Result: 18K QPS

About

WebAssembly Service Porter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%