proxy.golang.org : github.com/josharian/benchserve
Package benchserve provides a simple benchmark server. It is designed to allow an external program to drive the benchmarks in a compiled test binary. The API and protocol is still under development and may change. To enable benchserve with a package, add this somewhere to your package's tests: Your existing tests and benchmarks will operate unchanged. To use benchserve, compile the tests with 'go test -c', and then execute with the -test.benchserve flag, e.g. './foo.test -test.benchserve'. This will bypass all tests and benchmarks and ignore all other flags, including the usual benchmarking and profiling flags, and instead start the benchmark server. The benchmark server uses JSON-RPC. By default, it listens on :52525. Use the -test.benchserve.addr flag to set a different host:port. The server only serves a single request at a time. Serving requests concurrency could skew benchmark results. Benchserve relies on unexported details of the testing package, which may change at any time. A request to officially support this functionality is https://golang.org/issue/10930.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/josharian/benchserve
License: MIT
Latest release: almost 10 years ago
First release: almost 10 years ago
Namespace: github.com/josharian
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago