cmd/bench: add benchmark wrapper

The coordinator is getting support for running the benchmarks in this
repository. Since the benchmarks and interface are in flux, encoding all
of the details of running Go tests, bent arguments, etc into the
coordinator will likely cause churn and frustrating migration issues.

Instead, add cmd/bench which serves as the simple entrypoint for the
coordinator. The coordinator runs cmd/bench with the GOROOT to test
(eventually multiple GOROOTs), and this binary takes care of the
remaining details.

Right now, we just do a basic go test and
simple invocation of bent. Note that bent does not pass without

For golang/go#49207

Change-Id: I5c9cf89540cab605c0a64e17af85311d37985c25
Trust: Michael Pratt <>
Run-TryBot: Michael Pratt <>
TryBot-Result: Go Bot <>
Reviewed-by: Michael Knyszek <>
3 files changed