Skip to content

Commit 636cab1

Browse files
committed
📘 doc: add migration from x guide
1 parent 72a8988 commit 636cab1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/migrate/from-hono.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,9 @@ console.log('ok')
13891389

13901390
</Compare>
13911391

1392-
Using the same purpose code for each framework, Elysia has a better type inference performance than Hono and measure by 1.7x faster.
1392+
While both offers end-to-end type safety, Elysia offers a more type-safe error handling based on status code while Hono doesn't.
1393+
1394+
Using the same purpose code for each framework to measure type inference speed, Elysia is 2.3x faster than Hono for type checking.
13931395

13941396
![Elysia eden type inference performance](/migrate/elysia-type-infer.webp)
13951397
> Elysia take 536ms to infer both Elysia, and Eden (click to enlarge)

0 commit comments

Comments
 (0)