🚀
Native-first speed
Lean route handling for plaintext, JSON, echo, static assets, and WebSocket workloads.
A fast MoonBit HTTP and WebSocket framework with a small API surface and native-first performance.

async fn main {
let app = @mocket.new()
app.get("/", _ => "Hello, Mocket!")
app.listen(":4000")
} The benchmark uses the equivalent route set from benchmarks: GET /plaintext, GET /json, and GET /echo/:name.
mocket| target | avg req/s | plaintext | json | echo | errors/timeouts |
|---|---|---|---|---|---|
mocket | 96,142.55 | 101,466.19 | 93,186.91 | 93,774.55 | 0/0 |
| 87,200.78 | 92,824.73 | 78,692.80 | 90,084.80 | 0/0 | |
| 86,371.40 | 82,056.00 | 97,370.19 | 79,688.00 | 0/0 | |
| 79,657.07 | 82,828.80 | 75,342.40 | 80,800.00 | 23,486/0 | |
| 77,732.00 | 79,110.40 | 80,928.00 | 73,157.61 | 0/0 | |
| 69,488.25 | 71,464.00 | 67,546.19 | 69,454.55 | 0/0 | |
| 60,803.74 | 61,145.60 | 54,776.00 | 66,489.61 | 0/0 | |
| 56,317.00 | 57,168.00 | 56,522.19 | 55,260.80 | 0/0 | |
| 44,707.67 | 27,895.80 | 51,011.20 | 55,216.00 | 0/0 |