←back to thread

151 points lilprince1218 | 1 comments | | HN request time: 0.238s | source

Hey HN,

I'm 13, from Nigeria, and I just released PrinceJS — the fastest web framework for Bun right now.

• 19,200 req/s (beats Hono/Elysia/Express) • 2.8 kB gzipped • Tree-shakable (cache, AI, email, cron, SSE, queue, test, static...) • Zero deps. Zero config.

Built in < 1 week. No team. Just me and Bun.

Try it: `bun add princejs` GitHub: https://github.com/MatthewTheCoder1218/princejs Docs: https://princejs.vercel.app

Brutal feedback welcome. What's missing?

– @Lil_Prince_1218

Show context
saltyaom ◴[] No.45993888[source]
Hi! I'm a maintainer of Elysia, the framework you claim to have outperformed.

First of all, I admire you for taking the hard way of learning to build your own stuff, especially at your age.

However, I have a concern to believe that the benchmark result is a false positive, and inaccurate.

From my experience working and maintaining the Bun HTTP framework for 3 years since the first release of Bun 0.1.0. Bun.serve is extremely fast that autocannon (the benchmark tool you're using) cannot keep up with the performance, causing the report to be skewed from hitting the limit of the benchmark tool instead of an actual framework.

This is mentioned in Bun documentation. https://bun.com/docs/project/benchmarking#benchmarking-tools

- For load testing, you must use an HTTP benchmarking tool that is at least as fast as Bun.serve(), or your results will be skewed. Some popular Node.js-based benchmarking tools like autocannon are not fast enough.

It would be nice if you could update the benchmark with the tools that can report is faster than autocannon for the most accurate result.

Other than that, I'd say great job!

replies(1): >>45998063 #
1. lilprince1218 ◴[] No.45998063[source]
wow the maintainer of elysia.

ummm i realized that. u guys are still up there but i am at top three. Just updated with oha :)