Live data from Hacker News

Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

kyledrake.net

11–20 of 32 posts

Re: Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

#12

performance benchmark using the same ab tests for node http://tjholowaychuk.com/post/543953703/express-vs-sinatra-b...

That's just plain old Sinatra.

True but you can compare the Express benchmarks to those mentioned on the Synchrony site.

Re: Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

#13
post #8

performance benchmark using the same ab tests for node http://tjholowaychuk.com/post/543953703/express-vs-sinatra-b...

So, if I'm reading this right, response time and reqs/second look pretty comparable between this and express.

I think you're reading it right on the plain Hello World benches, but the in the HAML and SASS benches node is already 2 to 4 times faster with no concurrency. I think this speaks a lot for the impressive speed of V8. HAML/SASS are originally Ruby libraries, and carry a few years of experience on their backs, unlike their javascript versions. These V8 numbers are even (far) more impressive: http://attractivechaos.github.com/plb

Disclaimer: I use Ruby and have no experience with Node.js.

(edit: improved text)

Re: Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

#15

performance benchmark using the same ab tests for node http://tjholowaychuk.com/post/543953703/express-vs-sinatra-b...

Those benchmarks are not leveraging the concurrency that Sinatra::Synchrony brings to Sinatra. All this benchmark shows is that a concurrent application can serve out more requests than a non-concurrent application when tested concurrently.

Re: Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

#16

I've been going back and forth between learning Sinatra and Node. This may seal the deal in favor of Sinatra...

The beautiful thing about Sinatra is that it is ridiculously easy to pick up and go. With even a small amount of Ruby knowledge you're up and running in no time.

Re: Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

#17
post #16

I've been going back and forth between learning Sinatra and Node. This may seal the deal in favor of Sinatra...

The beautiful thing about Sinatra is that it is ridiculously easy to pick up and go. With even a small amount of Ruby knowledge you're up and running in no time.

Good to know - I'll be starting from scratch. Any useful Sinatra resources I should use, aside from the canonical Sinatra book?

Re: Sinatra::Synchrony - Evented, fast, concurrent Ruby web apps with no callbacks

#18
Sinatra-synchrony is awesome. For those looking to do a few more advanced use-cases, like HTTP streaming upload/downloads, websockets, etc.. Take a look at Goliath: https://github.com/postrank-labs/goliath

Same idea, em-synchrony under the hood.

Post reply on HN