This library is a very fast re-implementation of Express.js 4. It is designed to be a drop-in replacement for Express.js, with the same API and functionality, while being much faster. It is not a fork of Express.js. To make sure µExpress matches behavior of Express in all cases, we run all tests with Express first, and then with µExpress and compare results to make sure they match.
Tested using wrk (-d 60 -t 1 -c 200). Etag was disabled in both Express and µExpress. Tested on Ubuntu 22.04, Node.js 20.17.0, AMD Ryzen 5 3600, 64GB RAM.
Also tested on a real-world application with templates, static files and dynamic pages with data from database, and showed 1.5-4X speedup in requests per second depending on the page.
In a lot of cases, you can just replace require("express") with require("ultimate-express") and everything works the same. But there are some differences:
Optimized routes can be up to 10 times faster than normal routes, as they're using native uWS router and have pre-calculated path.