There was a bug in the benchmark. The app was a Rack::Builder meaning each middleware was re-instantiated on every request which isn't what is worth benchmarking.
We need to call to_app to get a final middleware stack that is representative of a production system.
There was a bug in the benchmark. The app was a
Rack::Builder
meaning each middleware was re-instantiated on every request which isn't what is worth benchmarking.We need to call
to_app
to get a final middleware stack that is representative of a production system.cc @maximecb @etiennebarrie