diff options
author | Fazlul Shahriar <fshahriar@gmail.com> | 2020-08-11 16:41:38 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-11 16:43:23 -0700 |
commit | 49947d2eb9506d85ec735d17d00060d59997c452 (patch) | |
tree | 88b96420714fac4107247f7140c7e5de438f4a14 /pkg/sentry/fsimpl/devpts/terminal.go | |
parent | 89f3197fc368702cbe1842932d9cfbede250269f (diff) |
Eliminate one allocation per send/recv for non-flipcall transport.
Ported from https://github.com/hugelgupf/p9/pull/44.
name old time/op new time/op delta
SendRecvLegacy-6 61.5µs ± 6% 60.1µs ±11% ~ (p=0.063 n=9+9)
SendRecv-6 40.7µs ± 2% 39.8µs ± 5% -2.27% (p=0.035 n=10+10)
name old alloc/op new alloc/op delta
SendRecvLegacy-6 769B ± 0% 705B ± 0% -8.37% (p=0.000 n=8+10)
SendRecv-6 320B ± 0% 256B ± 0% -20.00% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
SendRecvLegacy-6 25.0 ± 0% 23.0 ± 0% -8.00% (p=0.000 n=10+10)
SendRecv-6 14.0 ± 0% 12.0 ± 0% -14.29% (p=0.000 n=10+10)
PiperOrigin-RevId: 326127979
Diffstat (limited to 'pkg/sentry/fsimpl/devpts/terminal.go')
0 files changed, 0 insertions, 0 deletions