News for hackers. Stuff that matters.
Re:Twisted.web vs Tornado Performance, part deux by jacquesm on Thursday September 17, 2009 @12:36PM (#828308)
I don't think these tests are much more meaningful than the first.

They still use virtual machines, which give you all kinds of invisible overhead.

Even if that were not the case you should definitely split the machine that does the tests off from the machine that is being tested otherwise you get contention between the test program and the programs being tested (and java being quite cpu intensive running both tests on the same physical box is not a good idea).

Re:Twisted.web vs Tornado Performance, part deux by teilo on Thursday September 17, 2009 @12:55PM (#828361)
Given how common it is for production applications to be running in the cloud, this test is both valid and useful. Therefore these tests are much more meaningful than the first.
Re:Twisted.web vs Tornado Performance, part deux by jacquesm on Thursday September 17, 2009 @01:35PM (#828461)
I disagree. If you run a test on a virtual machine then you are testing a lot of other software besides the software under test so the picture gets distorted.

For instance, in the graphs that are in the report you can see a bunch of drops to '0' traffic, these suggest serious problems with the software under test. But knowing that the tests were done in a VM environment it is possible that the cause of these drops is not in the software under test but with the VM, or alternatively, with other software running on the host the VM is running on.

That makes it very difficult to assign meaning to all this.

If you test software you do it in an environment that controls all the variables as much as possible otherwise the results will not help you in making decisions.

If people run software 'in the cloud' then that's a different story altogether, then you test the same software side-by-side on your bare machine vs your 'in the cloud' setup and you benchmark those.

This test is labelled 'twister vs tornado', not 'twister in the cloud' vs 'tornado in the cloud'.

Re:Twisted.web vs Tornado Performance, part deux by teilo on Thursday September 17, 2009 @03:16PM (#828711)
If the tests were all over the map, I could agree with your original statement. But they are not. They are consistent.

Do you honestly expect anyone to believe that when test after test is run on a VM, and one framework consistently outperforms another, that this is due to the VM, and not the frameworks themselves?

Re:Twisted.web vs Tornado Performance, part deux by jacquesm on Thursday September 17, 2009 @03:24PM (#828732)
I'm more concerned with the drops to 0 and the overall throughput. The drops to 0 look quite bad, overall throughput is low compared to what I would expect from a setup like this.
Re:Twisted.web vs Tornado Performance, part deux by bmelton on Thursday September 17, 2009 @01:42PM (#828479)
But if you're testing them both in a VM, wouldn't you consider this a valid performance benchmark for those looking to run their instance in a cloud VM?

I mean, I think I get your point, in that this benchmark doesn't apply to those running bare metal... but isn't the obvious counterpoint that this is an especially useful benchmark for those running in a VM?

Re:Twisted.web vs Tornado Performance, part deux by jacquesm on Thursday September 17, 2009 @01:44PM (#828483)
If you compare two things running on a VM you have to have a play-by-play idea of what else is running on the machine the VM is running on otherwise your test could be seriously affected by something outside your view.
Re:Twisted.web vs Tornado Performance, part deux by roder on Thursday September 17, 2009 @12:40PM (#828326)
I did split the machines. The driver (the one running the test) machine is completely different than the webserver running twisted.web or tornado.
Re:Twisted.web vs Tornado Performance, part deux by jacquesm on Thursday September 17, 2009 @01:31PM (#828450)
But do you have any idea what else was running on those virtual machines and what kind of overhead that gave ?
Re:Twisted.web vs Tornado Performance, part deux by roder on Thursday September 17, 2009 @01:41PM (#828476)
Yes, I know exactly what was running on those virtual machines. They were purpose built for this test, nothing else was creating load on those servers.
Re:Twisted.web vs Tornado Performance, part deux by jacquesm on Thursday September 17, 2009 @01:52PM (#828507)
The virtual machines were not running anything else, but the machines they were running on might have been running something else.

Or are you sure that the machines these virtual machines were running on were otherwise completely idle ?

And if they were idle then why bother with the virtual machines, then you could have just run your tests directly bypassing the whole VM overhead.

Re:Twisted.web vs Tornado Performance, part deux by tjogin on Thursday September 17, 2009 @02:13PM (#828554)
Also, they're testing Hello World. IMHO that makes the tests close to meaningless.
Re:Twisted.web vs Tornado Performance, part deux by roder on Thursday September 17, 2009 @02:16PM (#828563)
The reason why I used "hello world" is two-fold

#1. because it's what Bret from Friendfeed used in his testing #2. it tests the core framework code, anything more is testing code I write.