valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.91k stars 1.76k forks source link

Make the tests complete earlier. #1848

Closed newacorn closed 2 months ago

newacorn commented 2 months ago

Reduce the test duration to 36% of the original time. Before Time Spend See Issue: https://github.com/valyala/fasthttp/issues/1839 After Commit:

~/GolandProjects/cbrotli_bug/fasthttp fasthttp_test_issue2*
❯ go test .
ok      github.com/valyala/fasthttp 2.558s

~/GolandProjects/cbrotli_bug/fasthttp fasthttp_test_issue2*
❯ go test -count=2
PASS
ok      github.com/valyala/fasthttp 4.976s

~/GolandProjects/cbrotli_bug/fasthttp fasthttp_test_issue2* 5s
❯ go test -count=3 .
ok      github.com/valyala/fasthttp 7.389s

~/GolandProjects/cbrotli_bug/fasthttp fasthttp_test_issue2* 8s
❯ go test -count=4 .
ok      github.com/valyala/fasthttp 9.991s
erikdubbelboer commented 2 months ago

Thanks!