Archives
Lessons learned from building a house.
Submitted by Ainars Galvans on Wed, 17/09/2008 - 14:37. context-driven testing | metaphorsPair testing
Submitted by Mike Kelly on Wed, 17/09/2008 - 15:13.Python Timing - time.clock() vs. time.time()
Submitted by noreply@blogger.com (Corey Goldberg) on Wed, 17/09/2008 - 16:56.Dear Lazyweb,
Which is better to use for timing in Python? time.clock() or time.time()? Which one provides more accuracy?
for example:
start = time.clock() ... do something elapsed = (time.clock() - start)
vs.
start = time.time() ... do something elapsed = (time.time() - start)
Update:
From the comments I received and others I have talked with, it looks like the answer is: use time() on Unix/Linux systems and clock() on Windows systems. However, the 'timeit' module gives you more options and is accurate across platforms.
Clear Up Misunderstandings - Get Practical
Submitted by jason@parlezuml.com (Jason Gorman) on Wed, 17/09/2008 - 18:09.That I can live with. We just agree to disagree, and move on into areas where - at the very least - we don't care either way.
What can make things much worse, though, is when we don't know that we disagree.
Test Driven Development With Parameterized Unit Tests
Submitted by Jonathan de Halleux on Thu, 18/09/2008 - 01:15.In the previous post, we implemented the insertion method of a binary heap using Test Driven Development (TDD) and parameterized unit tests (I'll leave the full implementation of the insertion method as an exercise).
