1. Brodie Rao
  2. cram
Issue #3 open

feature request: -j option for faster tests with multiple cores

Steve Losh
created an issue

It would be nice to have a --jobs/-j option to run tests in parallel for those of us with multiple cores (i.e. all of us).

Comments (4)

  1. Brodie Rao repo owner

    It's on the to-do list.

    I could implement it like Mercurial's test runner where it uses spawnv() to run a bunch of separate instances of the test runner with tasks divided among them. This is a lot simpler than implementing a worker pool, but a worker pool is probably more efficient (i.e., it can send tasks to available workers, instead of just waiting for each worker to consume its predetermined set of jobs).

  2. Steve Losh reporter

    The perfect is the enemy of the good. I'd say implement the simple version first (j workers each handling numtests/j tests) to get a large speedup, then worry about using a worker pool to take advantage of short-running tasks later.

  3. Log in to comment