Skip to content

MocketMoonBit Web Framework

A fast MoonBit HTTP and WebSocket framework with a small API surface and native-first performance.

Mocket

Version visitors

moonbit
async fn main {
  let app = @mocket.new()
  app.get("/", _ => "Hello, Mocket!")
  app.listen(":4000")
}

Benchmark

The benchmark uses the equivalent route set from benchmarks: GET /plaintext, GET /json, and GET /echo/:name.

targetavg req/splaintextjsonechoerrors/timeouts
mocket96,142.55101,466.1993,186.9193,774.550/0
gin87,200.7892,824.7378,692.8090,084.800/0
axum86,371.4082,056.0097,370.1979,688.000/0
springboot79,657.0782,828.8075,342.4080,800.0023,486/0
nodejs77,732.0079,110.4080,928.0073,157.610/0
hono69,488.2571,464.0067,546.1969,454.550/0
deno60,803.7461,145.6054,776.0066,489.610/0
nitro56,317.0057,168.0056,522.1955,260.800/0
bun44,707.6727,895.8051,011.2055,216.000/0

Released under the Apache 2.0 License.