For use on a lp dataset:
timer = timeit.Timer('[(row.approverID, row.assigneeID, row.drafterID) for row in resultset]', 'from canonical.launchpad.interfaces.lpstorm import IMasterStore; from lp.blueprints.model.specification import Specification; store=IMasterStore(Specification); store.reset(); resultset = store.find(Specification, Specification.id < 3000)')
For use on a lp dataset:
timer = timeit. Timer(' [(row.approverI D, row.assigneeID, row.drafterID) for row in resultset]', 'from canonical. launchpad. interfaces. lpstorm import IMasterStore; from lp.blueprints. model.specifica tion import Specification; store=IMasterSt ore(Specificati on); store.reset(); resultset = store.find( Specification, Specification.id < 3000)')