blob: 5d6872c88a2c147aed73d4c47b62241ffab221ce [file] [log] [blame]
// package benchmark provides simple tools to measure the performance of the
// IPC system.
package benchmarks
import (
"veyron.io/veyron/veyron2/services/security/access"
)
type Benchmark interface {
// Echo returns the payload that it receives.
Echo(Payload []byte) ([]byte, error) {access.Read}
// EchoStream returns the payload that it receives via the stream.
EchoStream() stream<[]byte,[]byte> error {access.Read}
}