I thought it would be interesting to add a plain Java example. I picked Undertow, because it's a reasonably popular, actively developed, modern Java kind-of-equivalent to Sinatra. It's also very fast, and i suppose i have a vested interest in showing Java in a good light. I'm using Mustache for templating - it's nice and simple and, again, fairly fast.
I've added an undertow benchmarker, which is built with Gradle, and includes a Procfile, although i haven't actually tested the Procfile.
I added the relevant lines to the bootstrap scripts. The only package dependency is Java, and that is installed by the Play bootstrap. Gradle is downloaded as part of the build.
I ran the Sinatra and Undertow benchmarks on my aged MacBook, and Undertow came out about eight times faster. It got progressively faster and more consistent as i ran it, so perhaps it's worth doing a warmup run of wrk before each measurement.
I have no idea if you're interested in additional frameworks, but i was curious, and i thought you might be. I also have no idea if you consider Undertow to be a suitable comparison; it's fairly spartan even in comparison to Sinatra, and certainly isn't an equivalent to Rails or Play.
I thought it would be interesting to add a plain Java example. I picked Undertow, because it's a reasonably popular, actively developed, modern Java kind-of-equivalent to Sinatra. It's also very fast, and i suppose i have a vested interest in showing Java in a good light. I'm using Mustache for templating - it's nice and simple and, again, fairly fast.
I've added an undertow benchmarker, which is built with Gradle, and includes a Procfile, although i haven't actually tested the Procfile.
I added the relevant lines to the bootstrap scripts. The only package dependency is Java, and that is installed by the Play bootstrap. Gradle is downloaded as part of the build.
I ran the Sinatra and Undertow benchmarks on my aged MacBook, and Undertow came out about eight times faster. It got progressively faster and more consistent as i ran it, so perhaps it's worth doing a warmup run of wrk before each measurement.
I have no idea if you're interested in additional frameworks, but i was curious, and i thought you might be. I also have no idea if you consider Undertow to be a suitable comparison; it's fairly spartan even in comparison to Sinatra, and certainly isn't an equivalent to Rails or Play.