News for hackers. Stuff that matters.
Re:The Ruby Web Benchmark Report by stephenitis on Wednesday July 16, 2014 @03:38AM (#8040976)
However, the combination of Standard Ruby + Thin/Unicorn + Rails is about the slowest possible combination. That on Ruby 2.1 gives you 1,455 req/sec. The fastest possible combination (JRuby + Torqbox + Rack) gets you 10,159 req/sec.

That is giving up 85.67% performance before you write a single useful line of code. That means at best possible performance, the standard rails app is 6.98 times slower than the fastest Ruby code could be. That also means your standard rails app is at least 7 times slower than the comparable Go or Scala app, simply because of your server, runtime, and framework.

Part 2 : measure development time without frameworks? ;)

awesome work! I enjoyed this as I was making comparisons between puma and unicorn.

A co-worker of mine has been battling a rails 3 -> 4 and ruby 1.9 -> 2.1 transition. I'm hoping this helps drive the needle in the right direction.

Re:The Ruby Web Benchmark Report by dpayonk on Wednesday July 16, 2014 @11:47AM (#8042636)
As a satisfied JRuby user for over 3 years in production environments, I can say this has translated into real life for me, as far as the variants I've used (Ruby 2.1, JRuby / Torquebox, Torqbox, Puma, Trinidad / Rails, Sinatra, Cuba, Straight Rack)
Re:The Ruby Web Benchmark Report by programminggeek on Thursday July 17, 2014 @12:39PM (#8048525)
Well that's awesome to hear.

I am curious how much JRuby performance advantages impact the rest of the code beyond just routing. There will be more benchmarks.

Re:The Ruby Web Benchmark Report by troels on Tuesday July 15, 2014 @02:20PM (#8038093)
Very thorough work and some interesting points along the way.

The title is a bit misleading though - This is not so much benchmarking Ruby as it is benchmarking the infrastructure around it. People may be switching to other languages because the actual application code is faster.

Re:The Ruby Web Benchmark Report by programminggeek on Tuesday July 15, 2014 @02:30PM (#8038147)
Well that could be true. The intent was for it to be a web benchmark, so benchmarking all the basic ruby web variants.

It's certainly not a pure ruby hello world test, but I think there is a lot of value in testing the infrastructure around Ruby. That has a huge impact on performance.

I don't doubt that other languages have faster application code, but figuring out how much faster vs what the best possible option for the existing code is worth exploring I think.

Re:The Ruby Web Benchmark Report by stephenitis on Wednesday July 16, 2014 @03:39AM (#8040977)
Are there similarly up to date post for node, python, and php?
Re:The Ruby Web Benchmark Report by programminggeek on Thursday July 17, 2014 @12:43PM (#8048562)
I haven't seen anything out there that goes this deep on PHP or Python or Node, but there are also fewer runtime and server choices out there for those languages.

You can certainly test frameworks, but that's where a lot of the fun begins and ends. Also, Techempower benchmarks pretty much did this outstandingly well.

Probably down the line I might look at PHP, Python, Clojure, .NET, and Java....

It's funny how these things spiral out of control.

Re:The Ruby Web Benchmark Report by thoughtpalette on Thursday July 17, 2014 @12:23PM (#8048412)
Check out the link he posted (and bookmark it :})

http://www.techempower.com/benchmarks/

Re:The Ruby Web Benchmark Report by programminggeek on Wednesday July 16, 2014 @09:40AM (#8041910)
Oh gosh, don't give me any ideas. I'd like to sleep more ;-)
Re:The Ruby Web Benchmark Report by ksec on Tuesday July 15, 2014 @02:38PM (#8038198)
Jruby 9000 and Ruby 2.2 will be out soon.
Re:The Ruby Web Benchmark Report by programminggeek on Tuesday July 15, 2014 @02:39PM (#8038206)
Sounds like another round of benchmarks to me!
Re:The Ruby Web Benchmark Report by ch4s3 on Tuesday July 15, 2014 @11:30PM (#8040418)
Great write up!
Re:The Ruby Web Benchmark Report by programminggeek on Thursday July 17, 2014 @12:40PM (#8048538)
Thanks!
Re:The Ruby Web Benchmark Report by headius on Tuesday July 15, 2014 @11:54AM (#8037158)
Epic.
Re:The Ruby Web Benchmark Report by programminggeek on Tuesday July 15, 2014 @11:57AM (#8037184)
Thanks. I was trying to be as comprehensive as possible. Sadly, that makes these a couple months old, but there will be updates.
Re:The Ruby Web Benchmark Report by idlewan on Tuesday July 15, 2014 @01:09PM (#8037654)
If you present lots of tables, some colour coding (green for high performing, red for slow, and some ranges in-between) might make it easier to parse visually.
Re:The Ruby Web Benchmark Report by programminggeek on Tuesday July 15, 2014 @01:13PM (#8037683)
Great Idea! I'll work on adding coloring to the tables.

I was working on even more charts, but they took forever to get on each thing, so hopefully for a later version...