]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: speed up TestAssembly
authorLorenzo Masini <rugginoso@develer.com>
Mon, 20 Feb 2017 16:17:28 +0000 (17:17 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 24 Feb 2017 21:23:43 +0000 (21:23 +0000)
commitfb1f47a77c642f36fc7a80d468ad1cda8bb66361
treebf7cb716349404fbae02c5e3360bcb9e96a01c0f
parent349b7820eb8bd30d42afad945b22e4e9fe74eff1
cmd/compile: speed up TestAssembly

TestAssembly was very slow, leading to it being skipped by default.
This is not surprising, it separately invoked the compiler and
parsed the result many times.

Now the test assembles one source file for arch/os combination,
containing the relevant functions.

Tests for each arch/os run in parallel.

Now the test runs approximately 10x faster on my Intel(R) Core(TM)
i5-6600 CPU @ 3.30GHz.

Fixes #18966

Change-Id: I45ab97630b627a32e17900c109f790eb4c0e90d9
Reviewed-on: https://go-review.googlesource.com/37270
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/asm_test.go