A performance benchmark comparing Go (using Fiber framework) against TypeScript (using Bun runtime) across two scenarios. The first test measured static HTTP responses, showing nearly identical performance with Bun reaching 200 req/s on 2 CPUs. The second test added PostgreSQL database interactions, where Go significantly outperformed Bun, achieving 84,000 req/s with better latency and stability. The tests ran on AWS EKS with 40 independent client pods gradually increasing load until failure. While Bun narrows the performance gap for TypeScript in server-side applications, Go maintains advantages in real-world scenarios involving databases and microservices.

6m watch time

Sort: