Web Frameworks Performance

243 views
Skip to first unread message

Alfonso de la Guarda

unread,
May 8, 2013, 8:31:19 AM5/8/13
to web...@googlegroups.com
Hi,

How we can improve web2py to match the fastest python web frameworks performance?


Surely, with many brains we can offer some method to improve that!

Saludos,

--------------------------------
Alfonso de la Guarda
Twitter: @alfonsodg
Redes sociales: alfonsodg
   Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B  58A5 54A1 851D B23B 24A4

LightDot

unread,
May 8, 2013, 9:02:46 AM5/8/13
to web...@googlegroups.com
Benchmarks! Time to get some popcorn and sit back...

Btw, don't be so pessimistic, web2py isn't even included yet... :)

Regards,
Ales

Alfonso de la Guarda

unread,
May 8, 2013, 9:10:58 AM5/8/13
to web...@googlegroups.com
Hi

I am not pessimistic but rather seek to define a goal that can get that many heads can develop a procedure / mechanism or technology to carry web2py to another level.

The benchmarks are inevitable when it comes to designing a strategy to scale a solution

Saludos,

--------------------------------
Alfonso de la Guarda
Twitter: @alfonsodg
Redes sociales: alfonsodg
   Telef. 991935157
1024D/B23B24A4
5469 ED92 75A3 BBDB FD6B  58A5 54A1 851D B23B 24A4


--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Niphlod

unread,
May 8, 2013, 11:45:49 AM5/8/13
to web...@googlegroups.com



Benchmarks! Time to get some popcorn and sit back...

+1. Don't expect web2py to be the fastest framework. It simply can't, and for a lot of (good) reasons. Nonetheless, it can be improved (as every program out there).
 

Derek

unread,
May 8, 2013, 12:54:43 PM5/8/13
to web...@googlegroups.com
Well, if you look at the benchmarks, several things stand out.

1. All the WSGI servers are pre-loaded. That means the code is already pre-compiled and loaded in ram, ready to run. Web2py doesn't quite work that way, because each request loads the database, does migrations if necessary, and inserts a lot of objects into the scope.

2. They are all using gunicorn, which spawns about 4 workers on startup. We could certainly run Web2py in WSGI mode with gunicorn, but it wouldn't make much a difference. I believe if we are going to support sessions, they should be off by default and use a decorator @session_enabled or something like that. However, that may go against Web2py principles.

3. Those benchmarks are not development type setups. If we are going to compare benchmarks, we'll need to make sure that our configuration matches theirs. 

4. Web2py was meant to be a teaching tool. However, as it is now, what it's teaching is years old. Now everything needs to be WSGI so you can run it on a PAAS such as Heroku, Iron.io, Azure, etc.

It's good to know how we compare with performance, but at the same time, I think we need to be realistic. Web2py needs to be re-architectured if we're going to see wider adoption in the future.

Massimo Di Pierro

unread,
May 8, 2013, 3:56:34 PM5/8/13
to web...@googlegroups.com
Just some comments about 4. Web2py was not meat as a teacher tool. Web2py was meant to enforce good practice and this made it a good teaching tool. Not quite the same. In fact web2py is based on WSGI and it does run on Heroku. There is a session in the manual about that. I never tried Iron.io or Azure but I am sure it runs there as any other WSGI server does.

Alexei Vinidiktov

unread,
May 9, 2013, 6:22:51 AM5/9/13
to web...@googlegroups.com
I run a small website in a Linux VM on Azure with WSGI. Seems to work fine. It's just a VM as any other.


--
 
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Alexei Vinidiktov
Reply all
Reply to author
Forward
0 new messages