You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,43 +22,43 @@ so that a process could put many request to the IO queue, and other process cou
22
22
23
23
## Performance Testing
24
24
25
-
The source code bench_test.go, doing a performance comparison between shmipc and unix domain in ping-pong scenario with different package size. The result is as follows: having a performance improvement whatever small package or large package.
25
+
The source code bench_test.go, doing a performance comparison between shmipc and unix domain in ping-pong scenario with different package size. The result is as follows: the performance of small packet scenarios is comparable and the performance of large packet scenarios is significantly improved.
26
26
27
27
```
28
28
go test -bench=BenchmarkParallelPingPong -run BenchmarkParallelPingPong
- BenchmarkParallelPingPongByUds, the ping-pong communication base on Unix domain socket.
60
59
- BenchmarkParallelPingPongByShmipc, the ping-pong communication base on shmipc.
61
60
- the suffix of the testing case name is the package size of communication, which from 64 Byte to 4 MB.
61
+
- Stream.BufferWriter() and Stream.BufferReader() provide buffer read-write interfaces for shared memory, where the ReadBytes() and Reserve() methods can be used for zero-copy read and write.
0 commit comments