@kozojs/core 0.2.5 â 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,8 +6,8 @@ High-performance backend framework with native Zod validation, type-safe client
|
|
|
6
6
|
|
|
7
7
|
## ð Performance
|
|
8
8
|
|
|
9
|
-
- **
|
|
10
|
-
- **
|
|
9
|
+
- **17,510 req/s** â faster than Fastify (+33%) and NestJS (+324%)
|
|
10
|
+
- **Native C++ route matching** via uWebSockets.js â zero JS dispatch overhead
|
|
11
11
|
- **Zero overhead** serialization with fast-json-stringify
|
|
12
12
|
- **Edge-ready**: Works on Node.js, Bun, Deno, and Cloudflare Workers
|
|
13
13
|
|
|
@@ -154,16 +154,20 @@ import { createKozo } from 'npm:@kozojs/core';
|
|
|
154
154
|
|
|
155
155
|
## ð Performance Comparison
|
|
156
156
|
|
|
157
|
-
| Framework | Req/
|
|
158
|
-
|
|
159
|
-
| **Kozo** | **
|
|
160
|
-
|
|
|
157
|
+
| Framework | Req/s | Latency (GET) |
|
|
158
|
+
|-----------|-------|---------------|
|
|
159
|
+
| **Kozo** | **17,510** | **317 Ξs** |
|
|
160
|
+
| Fastify | 13,210 | 766 Ξs |
|
|
161
|
+
| NestJS | 4,131 | 648 Ξs |
|
|
162
|
+
|
|
163
|
+
> Benchmarked with `autocannon` â 10 concurrent connections, 10 seconds.
|
|
164
|
+
> Route matching done in C++ by uWS before any JS runs.
|
|
161
165
|
|
|
162
166
|
**Why choose Kozo:**
|
|
163
|
-
- If you need **
|
|
164
|
-
- If you
|
|
165
|
-
- If you
|
|
166
|
-
-
|
|
167
|
+
- If you need **maximum throughput** â 33% faster than Fastify
|
|
168
|
+
- If you want **best DX + type safety** â Zod-native, zero boilerplate
|
|
169
|
+
- If you need **type-safe client generation** â built-in SDK codegen
|
|
170
|
+
- If you need **maximum portability** â Works on Node.js, Bun, Deno, Edge
|
|
167
171
|
|
|
168
172
|
## ð Middleware
|
|
169
173
|
|
|
@@ -247,3 +251,5 @@ Contributions welcome! See [CONTRIBUTING.md](../../CONTRIBUTING.md)
|
|
|
247
251
|
---
|
|
248
252
|
|
|
249
253
|
**Made with ⥠by the Kozo team**
|
|
254
|
+
|
|
255
|
+
> Powered by [uWebSockets.js](https://github.com/uNetworking/uWebSockets.js) â native per-route C++ matching
|