Skip to content

Commit

Permalink
Read up to 4K from each log.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Sep 9, 2013
1 parent f21a4de commit 44a16b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions benchmark_results.csv
Expand Up @@ -5,3 +5,7 @@
1359593784,1,4,examples/sftp.em,200,47200,1.516004s,7.58002,236,31.13448249476914,32.11872881355932
1359593782,1,4,examples/rsyncd.em,100,23500,2.167435s,21.67435,235,10.842308996578904,92.23127659574467
1359593779,1,4,examples/linecount.em,50000,50000,2.695952s,0.053919,1,18.546324266900893,53.91904
1378745369,1,4,examples/dhcpd.em,1,50000,8.342115s,8342.115,50000,5.993683855952598,166.8423
1378745360,1,4,examples/sftp.em,500,118000,3.574926s,7.149852,236,33.00767624280894,30.295983050847457
1378745356,1,4,examples/rsyncd.em,100,23500,1.769277s,17.69277,235,13.28226162438103,75.2883829787234
1378745354,1,4,examples/linecount.em,50000,50000,2.569769s,0.051395,1,19.457001777202542,51.39538
2 changes: 1 addition & 1 deletion tail.go
Expand Up @@ -84,7 +84,7 @@ func (t *tailer) Tail(pathname string) {
func (t *tailer) handleLogUpdate(pathname string) {
Loop:
for {
b := make([]byte, 32)
b := make([]byte, 4096)
n, err := t.files[pathname].Read(b)
if err != nil {
if err == io.EOF && n == 0 {
Expand Down

0 comments on commit 44a16b4

Please sign in to comment.