On Mon, Oct 26, 2020 at 8:46 AM Craig Silverstein
<csilv...@khanacademy.org> wrote:
>
> > You realize that the flag "-count 1" disable the cache, right?
>
> Well, it disables *a* cache.  The docs don't make it clear, but it
> seems like it only disables the test-cache.  I don't see why it would
> affect the build caches -- build time being my theory as to why the
> tests are slower.  But maybe it does?  Or maybe the extra time isn't
> being spent in building after all.

Hi Craig.

That's correct: -count 1 disables the test cache but not the build
cache.  But it does take some time to check all the source files and
verify that the build cache is correct.  Also, you can use "go test
-x" to see the commands that it is running.  Perhaps the build cache
is being invoked after all.  If there are commands being run, you can
get some idea of how long they take by using "go test
-toolexec=/usr/bin/time -x".

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWrFU7DLb6Nh%3D2b7yGP4C2sNX1j6hOujKy2qupDa40R9A%40mail.gmail.com.

Reply via email to