[tahoe-lafs-trac-stream] [tahoe-lafs] #20: unit tests take too long

tahoe-lafs trac at tahoe-lafs.org
Tue Oct 23 22:04:12 UTC 2012


#20: unit tests take too long
------------------------+------------------------------
     Reporter:  zooko   |      Owner:  somebody
         Type:  defect  |     Status:  reopened
     Priority:  major   |  Milestone:  eventually
    Component:  code    |    Version:
   Resolution:          |   Keywords:  test performance
Launchpad Bug:          |
------------------------+------------------------------

Old description:

> The best way to fix this would be to optimize the code under test so that
> it passes the tests faster.
>
> The second best way would be to optimize the tests so that they test the
> same thing but faster.
>
> The third best way would be to reduce the "replications, redundancy,
> random stabs in the dark" and so forth, and the tests of scaling.  (This
> cries out for another category of test that reports on scaling
> behavior...)
>
> The fourth best way would be to judiciously prune tests which have been
> superceded by more comprehensive tests and are now redundant.

New description:

 The best way to fix this would be to optimize the code under test so that
 it passes the tests faster.

 The second best way would be to optimize the tests so that they test the
 same thing but faster.

 The third best way would be to reduce the "replications, redundancy,
 random stabs in the dark" and so forth, and the tests of scaling.  (This
 cries out for another category of test that reports on scaling
 behavior...)

 The fourth best way would be to judiciously prune tests which have been
 superceded by more comprehensive tests and are now redundant.

--

Comment (by davidsarah):

 Replying to [comment:16 davidsarah]:
 >  * run the tests in parallel (obviously this will only help on multicore
 machines).

 See [http://twistedmatrix.com/trac/ticket/1784]. Summary: you'll be able
 to do
 {{{
 bin/tahoe debug trial -j NUMBER_OF_PROCESSES
 }}}
 when that is released in the next version of Twisted. You'll need a lot of
 memory though!

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/20#comment:20>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list