blob: e57ccec384f18364ff91d2931d989f43d597b682 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// A simple command-line tool to run the benchmark server.
package main
import (
"v.io/v23"
"v.io/x/lib/vlog"
"v.io/x/ref/lib/signals"
"v.io/x/ref/profiles/internal/rpc/benchmark/internal"
_ "v.io/x/ref/profiles/roaming"
)
func main() {
ctx, shutdown := v23.Init()
defer shutdown()
addr, stop := internal.StartServer(ctx, v23.GetListenSpec(ctx))
vlog.Infof("Listening on %s", addr)
defer stop()
<-signals.ShutdownOnSignals(ctx)
}