Skip to content

Commit 44a16b4

Browse files
committed
Read up to 4K from each log.
1 parent f21a4de commit 44a16b4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

benchmark_results.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
1359593784,1,4,examples/sftp.em,200,47200,1.516004s,7.58002,236,31.13448249476914,32.11872881355932
66
1359593782,1,4,examples/rsyncd.em,100,23500,2.167435s,21.67435,235,10.842308996578904,92.23127659574467
77
1359593779,1,4,examples/linecount.em,50000,50000,2.695952s,0.053919,1,18.546324266900893,53.91904
8+
1378745369,1,4,examples/dhcpd.em,1,50000,8.342115s,8342.115,50000,5.993683855952598,166.8423
9+
1378745360,1,4,examples/sftp.em,500,118000,3.574926s,7.149852,236,33.00767624280894,30.295983050847457
10+
1378745356,1,4,examples/rsyncd.em,100,23500,1.769277s,17.69277,235,13.28226162438103,75.2883829787234
11+
1378745354,1,4,examples/linecount.em,50000,50000,2.569769s,0.051395,1,19.457001777202542,51.39538

tail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (t *tailer) Tail(pathname string) {
8484
func (t *tailer) handleLogUpdate(pathname string) {
8585
Loop:
8686
for {
87-
b := make([]byte, 32)
87+
b := make([]byte, 4096)
8888
n, err := t.files[pathname].Read(b)
8989
if err != nil {
9090
if err == io.EOF && n == 0 {

0 commit comments

Comments
 (0)