blob: 5d6872c88a2c147aed73d4c47b62241ffab221ce [file] [log] [blame]
Robin Thellendcafaa492014-06-24 13:58:25 -07001// package benchmark provides simple tools to measure the performance of the
2// IPC system.
3package benchmarks
4
Jungho Ahn8b43cfb2014-12-12 09:51:45 -08005import (
6 "veyron.io/veyron/veyron2/services/security/access"
7)
8
Robin Thellendcafaa492014-06-24 13:58:25 -07009type Benchmark interface {
10 // Echo returns the payload that it receives.
Jungho Ahn8b43cfb2014-12-12 09:51:45 -080011 Echo(Payload []byte) ([]byte, error) {access.Read}
Robin Thellendcafaa492014-06-24 13:58:25 -070012 // EchoStream returns the payload that it receives via the stream.
Jungho Ahn8b43cfb2014-12-12 09:51:45 -080013 EchoStream() stream<[]byte,[]byte> error {access.Read}
Robin Thellendcafaa492014-06-24 13:58:25 -070014}