Tuesday, April 17, 2012

Re: High Traffic

On Mon, Apr 16, 2012 at 9:49 PM, Yarden Sachs <yrdnsa@gmail.com> wrote:
> Sure,
>
> I experienced unknown performance issues(slow responses) when high traffic
> would hit that site.
>
> so, started to test what happens if i hit the web site with a big
> calculation, like len function on an 9k objects.
> when i try to do it from client, it takes 0.7 secs to come back with
> response, if try to do it from 10 parralel client, it takes 15 secs for one
> http response!
>
> my team member, tried to find out the problem, and his conclusion is -
> python+django is not fast. and i DONT like that. its not right!
>
> So i am trying to find out why is that.
>
> if a i am trying to do simpler tasks like empty template rendering. or
> .count method, things go faster.
>
> but apart from the len function, i still performance issues if many users
> try to access the web site. its a delivery service application.
>
> Any ideas?
>

Here's a couple:

Contrived tests don't prove anything.
MySQL blows for concurrency, it is heavily reliant on underlying IOPS.

Your team member is wrong to assume "python+django is not fast".
Re-implement your benchmark in PHP*, and observe the same results. The
performance of any web application largely comes down to what you are
doing in the database and how you are doing. The choice of framework
is largely irrelevant, you can do stupid things in any
language/framework.

Cheers

Tom

* I am now anticipating having a non-comparable PHP benchmark shoved
in my face. Django constructs objects for each user in that list**,
any PHP equivalent benchmark should do the same.

** No, that isn't Django being daft, it is what you instructed it to
do with len(User.objects.all()).

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate