[darcs-users] darcs patch: Mention +RTS voodoo in unit --help.

Trent W.Buck trentbuck at gmail.com
Tue May 26 03:13:33 UTC 2009


Reinier Lamers <tux_rocker at reinier.de> writes:

> This is wrong. The test [with just -j4] does not actually use multiple
> CPU threads. To create multiple CPU threads you have to pass the -N
> flag to the Haskell runtime system, with the number of threads. The
> interesting thing to time is "dist/build/unit/unit -j4 +RTS -N4".

Thanks, that works.  The attached patch should make this obvious to
other ignorant schmucks like me.

       real        user        sys
  1m43.506s   3m56.180s   0m4.980s   # -j4 +RTS -N4
  2m10.127s   2m 9.370s   0m0.760s   # no args

> To tell what tests failed, look at the summary that you get after
> all tests have finished.

Do you mean the line "92 tests passed."?  I'm not sure how to extract
that (i.e. discard the interleaved noise).  I tried taking tail -1 of
the output, but I just get

    Falsifiable (seed: 1343663687 1276424094, size: 46)

Tue May 26 12:03:08 EST 2009  Trent W. Buck <trentbuck at gmail.com>
  * Mention +RTS voodoo in unit --help.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 73412 bytes
Desc: A darcs patch for your repository!
URL: <http://lists.osuosl.org/pipermail/darcs-users/attachments/20090526/9aa7909f/attachment-0001.bin>


More information about the darcs-users mailing list