blob: f621c7b9cae1843b750f5ab5e4143d93653c3a0d [file] [log] [blame]
// A simple command-line tool to run the benchmark server.
package main
import (
"v.io/core/veyron2/rt"
"v.io/core/veyron2/vlog"
"v.io/core/veyron/lib/signals"
"v.io/core/veyron/profiles/roaming"
"v.io/core/veyron/runtimes/google/ipc/benchmarks"
)
func main() {
vrt, err := rt.New()
if err != nil {
vlog.Fatalf("Could not initialize runtime: %s", err)
}
defer vrt.Cleanup()
addr, stop := benchmarks.StartServer(vrt, roaming.ListenSpec)
vlog.Infof("Listening on %s", addr)
defer stop()
<-signals.ShutdownOnSignals(vrt)
}