• Brad Fitzpatrick's avatar
    io, net, http: sendfile support · b0f39cc2
    Brad Fitzpatrick authored
    Speeds up static fileserver, avoiding kernel/userspace copies.
    
    Numbers: downloading 14 MB AppEngine Go SDK with ab (Apache Bench)
    with 5 threads:
    
    Before/after numbers:
    
    CPU:
    user    0m3.910s
    sys     0m23.650s
    ->
    user    0m0.720s
    sys     0m4.890s
    
    Time taken for tests:   8.906 seconds
    ->
    Time taken for tests:   8.545 seconds
    
    Percentage of the requests served within a certain time (ms)
    50%     44
    66%     45
    75%     46
    80%     46
    90%     48
    95%     51
    98%     59
    99%     71
    100     74 (longest request)
    ->
    50%     42
    66%     43
    75%     43
    80%     44
    90%     46
    95%     57
    98%     62
    99%     63
    100%    64 (longest request)
    
    R=iant, gary.burd, rsc, bradfitz
    CC=golang-dev
    https://golang.org/cl/4543071
    b0f39cc2
Name
Last commit
Last update
..
ioutil Loading commit data...
Makefile Loading commit data...
io.go Loading commit data...
io_test.go Loading commit data...
multi.go Loading commit data...
multi_test.go Loading commit data...
pipe.go Loading commit data...
pipe_test.go Loading commit data...