Re: timeit module put my app into infinite loop

2008-10-09 Thread bruno desthuilliers
On 8 oct, 07:09, "K*K" <[EMAIL PROTECTED]> wrote: > Thank you, Bruno. > > My program running ok with your guide. > > My goal is to compare the ORM performance of Django and > TurboGears(SQLObject or SQLAlchemy). Given that both SQLObject and SQLAlchelmy are usable as standalone components, you

Re: timeit module put my app into infinite loop

2008-10-07 Thread K*K
Thank you, Bruno. My program running ok with your guide. My goal is to compare the ORM performance of Django and TurboGears(SQLObject or SQLAlchemy). So write the test scripts. To process 1000 times data, django's test result is below: Insert Speed: 0.766191005707 Select Speed: 0.027615070343

Re: timeit module put my app into infinite loop

2008-10-07 Thread bruno desthuilliers
On 7 oct, 17:54, "K*K" <[EMAIL PROTECTED]> wrote: Just a couple more (slightly OT) notes: > I'm writing a program to test django's mysql performance, "django's mysql performance" doesn't really makes sense. What you're testing with your code is the combined perfs of - Django's orm - Python's My

Re: timeit module put my app into infinite loop

2008-10-07 Thread bruno desthuilliers
On 7 oct, 17:54, "K*K" <[EMAIL PROTECTED]> wrote: > Hi, all > > I'm writing a program to test django's mysql performance, use timeit > to profile. But it make my app into infinite loop. I'm probably a bit tired, but I don't see how the below snippet could cause an infinite loop - unless you did s

timeit module put my app into infinite loop

2008-10-07 Thread K*K
Hi, all I'm writing a program to test django's mysql performance, use timeit to profile. But it make my app into infinite loop. always write data into database. How can I resolve it ? The source code like below: import timeit from django.shortcuts import render_to_response from testDjango.be