Replies: 3 comments 5 replies
-
It's faster than FastAPI (Node vs Python). It's lighter weight (and less opinionated) than express. |
Beta Was this translation helpful? Give feedback.
-
for future purposes, in case anyone comes here, my tests returned: Express - Req/sec: 1892.67 Fastify - Req/sec: 37212.54 H3 - Req/sec: 24247.34 (I ran the same test about 10 times, and the result was consistent. It’s a good option to use, I'm really impressed, even though I've tested simple routes, it's very light and has considerable performance, I used Autocannon to make the test.) test code (all libs was the basic of your documentation returning a "ok"):
|
Beta Was this translation helpful? Give feedback.
-
I didn't even know this size was possible lol package size: 121.5 kB My tests still returned something significant, despite being as light as the previous one and still returning an extremely better latency compared to the express, this one was more mixed, the average it returned to me was: It is better than Fastify and but is not more stable than Express. I ran a test comparing Express and H3 v2 with 1,500 simultaneous connections using Autocannon for 30 seconds(something in 45000 connections). In the worst-case scenario, H3 returned 198,973 errors, while Express returned 114,300 errors. I’ll wait for some new releases, but it’s clear that I’ll try using H3 to see if it performs the same way in a more complex system. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
No worries, I'm just curious, what's the main difference between H3 and other libs like FastAPI or Express?
It looks tiny, is it faster, or is there something else I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions