Commit Graph

30 Commits

Author SHA1 Message Date
Oleksandr Redko 3166afd835 Enable few gocritic checks; fix up issues (#1728) 2024-03-02 16:19:05 +01:00
Tiago Peczenyj deda595822 fix benchmark panics on client_timing_test.go (#1643)
* Update client_timing_test.go

fix benchmark panics

* must gofumpt
2023-11-05 14:48:00 +01:00
Aoang a696949f6c Deprecate Go 1.15 (#1379)
* Dropping support for 1.15.

* Replaces Go 1.16 Deprecated functions

* Update test build flag

* Fix import sort and comment

* Update github.com/klauspost/compress to v1.15.9

https://github.com/klauspost/compress improved performance and changed Minimum version is 1.16, this should be the final supported release for Go 1.16 (https://github.com/klauspost/compress/commit/6d0019a95afa3221f7522d1f2eed0033b5e79470) .
2022-09-15 22:28:25 +03:00
Erik Dubbelboer a5f448fc97 Improve Client timeout (#1346)
Don't run requests in a separate Goroutine anymore. Instead use proper
conn deadlines to enforce timeouts.

- Also contains some linting fixes.
2022-07-29 19:03:15 +02:00
Erik Dubbelboer 7a5afddf5b Use %v for errors and %q for strings (#1262)
Mostly in tests.
2022-04-01 18:11:16 +02:00
Erik Dubbelboer 32793db72d Run golangci-lint using a Github Action 2019-11-16 18:09:28 +01:00
Maxim Lebedev d3715c361c Used Headers constants instead raw strings 2019-05-28 18:04:24 +03:00
Maxim Lebedev f544170d63 Added methods constants (#567)
*  Added methods constants

* 👌 Fixed methods comment due to review changes
2019-05-06 17:54:49 +02:00
Erik Dubbelboer ed16dc07fd Fix go test -bench 2019-04-13 23:17:55 +02:00
Aliaksandr Valialkin 881ac52b00 Added support for multiple concurrent connections to server in PipelineClient 2016-07-16 17:36:32 +03:00
Aliaksandr Valialkin 22c9594090 Added PipelineClient for issuing pipelined requests to the server 2016-04-01 18:06:59 +03:00
Aliaksandr Valialkin 064ef6ef44 added client end-to-end benchmark for 10K concurrent connections 2016-03-30 19:22:05 +03:00
Aliaksandr Valialkin d1768755c9 gofmt 2016-03-01 17:12:39 +02:00
Aliaksandr Valialkin a19a196595 Use DoTimeout instead of GetTimeout in 'big response' benchmark 2016-03-01 01:11:20 +02:00
Aliaksandr Valialkin a956ac660d Set timeout when benchmarking big responses 2016-03-01 00:42:24 +02:00
Aliaksandr Valialkin 203ba5897c Issue #60: added benchmarks for big response bodies 2016-02-29 17:28:41 +02:00
Aliaksandr Valialkin 4a3c401fd8 fixed a typo 2016-01-11 15:38:30 +02:00
Aliaksandr Valialkin bdd5902714 Issue #36: added InmemoryListener, which may be used for writing client<->server tests and fast in-process client<->server communication 2016-01-11 15:35:45 +02:00
Aliaksandr Valialkin ce706fbda7 Improved client benchmarks: explicitly set the maximum number of concurrent client connections, added end-to-end benchmarks for inmemory dialer<->listener 2016-01-11 14:21:28 +02:00
Aliaksandr Valialkin f85708c120 Client-Server end-to-end benchmarks' tuning 2015-12-30 14:30:37 +02:00
Aliaksandr Valialkin 8cd2f8da6b Added more parallel benchmarks for the client 2015-12-29 17:18:15 +02:00
Aliaksandr Valialkin d2db95337f Removed 'v interface{}' hack from structs managed via sync.Pool, since it has no sense 2015-12-23 11:39:40 +02:00
Aliaksandr Valialkin 052a3cfb65 Substitute EqualBytesStr(s, b) by string(b) == s 2015-12-19 20:44:01 +02:00
Aliaksandr Valialkin a3fd75d237 Eliminated memory allocations from client's DoTimeout and GetTimeout 2015-11-26 17:04:27 +02:00
Aliaksandr Valialkin a2601c68af API consistency change - make Response.StatusCode accessor 2015-11-19 11:39:20 +02:00
Aliaksandr Valialkin 86fe38c7a2 Hide Respone and Request body behind Body accessors 2015-11-18 14:00:24 +02:00
Aliaksandr Valialkin 2e78d83bf7 Hide Request.RequestURI behind accessors in order to prevent users shooting in the foot when assigning to Request.RequestURI directly 2015-11-14 17:58:58 +02:00
Aliaksandr Valialkin bbcdceaa76 Added benchmark for net/http client with fake fast server 2015-11-13 19:50:31 +02:00
Aliaksandr Valialkin 69f3c67fce Added benchmark for measuring the maximum client throughput 2015-11-13 19:38:46 +02:00
Aliaksandr Valialkin 8a44f0c563 Added end-to-end benchmarks for fasthttp and net/http 2015-11-13 16:56:16 +02:00