Yes, 

GOOS=nnnn GOARCH=nnnn go test -c 

will produce a binary for the target, the name by default will be the 
package's name, plus ".test"

Copy that to your target and run it

./$package.test -test.bench=.

On Tuesday, 5 December 2017 11:56:52 UTC+11, simon place wrote:
>
>
> is it possible, with the go tools, to build the benchmark executable, so i 
> could copy and run it remotely? (for any given os/arch)
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to