Robin Thellend | cafaa49 | 2014-06-24 13:58:25 -0700 | [diff] [blame] | 1 | // package benchmark provides simple tools to measure the performance of the |
| 2 | // IPC system. |
| 3 | package benchmarks |
| 4 | |
Jungho Ahn | 8b43cfb | 2014-12-12 09:51:45 -0800 | [diff] [blame] | 5 | import ( |
| 6 | "veyron.io/veyron/veyron2/services/security/access" |
| 7 | ) |
| 8 | |
Robin Thellend | cafaa49 | 2014-06-24 13:58:25 -0700 | [diff] [blame] | 9 | type Benchmark interface { |
| 10 | // Echo returns the payload that it receives. |
Jungho Ahn | 8b43cfb | 2014-12-12 09:51:45 -0800 | [diff] [blame] | 11 | Echo(Payload []byte) ([]byte, error) {access.Read} |
Robin Thellend | cafaa49 | 2014-06-24 13:58:25 -0700 | [diff] [blame] | 12 | // EchoStream returns the payload that it receives via the stream. |
Jungho Ahn | 8b43cfb | 2014-12-12 09:51:45 -0800 | [diff] [blame] | 13 | EchoStream() stream<[]byte,[]byte> error {access.Read} |
Robin Thellend | cafaa49 | 2014-06-24 13:58:25 -0700 | [diff] [blame] | 14 | } |