-
Notifications
You must be signed in to change notification settings - Fork 294
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/mod/zip: make all tests parallel
I'm not sure why x/mod/zip only makes the sub-tests parallel. Two of these tests deal with very large zip files, but they don't create those large files in in-memory buffers; the Create test writes to io.Discard, and Unzip uses temporary files. Moreover, their subtests were already parallel, so we were already creating multiple such large files at once anyway. This helps slightly with `go test`, dropping from 2.9s to 1.6s while CPU usage increases from 150% to 280% on my laptop. The real difference is with `go test -race`, which we use in CI: I see a drop from 80s to 43s, again using multiple CPUs better. Signed-off-by: Daniel Martí <[email protected]> Change-Id: I92cd8828ae2b11a7b83568c6145e020e3b54d754 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1170018 Unity-Result: CUE porcuepine <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Roger Peppe <[email protected]>
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters