blob: 416762cd36a3d3ce7d70cf4e135b2d941fadec9f [file] [log] [blame]
// A simple command-line tool to run the benchmark server.
package main
import (
"v.io/core/veyron/lib/signals"
"v.io/core/veyron/profiles/roaming"
"v.io/core/veyron/runtimes/google/ipc/benchmark"
"v.io/core/veyron2"
"v.io/core/veyron2/vlog"
)
func main() {
ctx, shutdown := veyron2.Init()
defer shutdown()
addr, stop := benchmark.StartServer(ctx, roaming.ListenSpec)
vlog.Infof("Listening on %s", addr)
defer stop()
<-signals.ShutdownOnSignals(ctx)
}