An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 5.3% on proxy.golang.org
Top 5.8% dependent packages on proxy.golang.org
Top 4.8% dependent repos on proxy.golang.org

proxy.golang.org : github.com/aybabtme/benchkit

Package benchkit is the lightweight, feather touch, benchmarking kit. In comparison to the standard pprof utilities, this package is meant to help generating graphs and other artifacts. Get a benchmark kit: A benchmark kit consists of 4 methods: Here's an example: Inside your benchmark, you will use the `BenchEach` object. This object consists of 2 methods: In both case, you must ensure that `0 <= i < n`, or you will panic. In the example above, you could use `defer each.After(i)`, however `defer` has some overhead and thus, will reduce the precision of your benchmark results. The `result` object given with your `bench` object will not be populated before your call to `Teardown`.: Using `result` before `Teardown` will result in: So don't do that. =) Collects memory allocation during the benchmark, using `runtime.ReadMemStats`. The measurements are coarse.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/aybabtme/benchkit
License: MIT
Latest release: over 2 years ago
First release: about 8 years ago
Namespace: github.com/aybabtme
Dependent packages: 1
Dependent repositories: 1
Last synced: 26 days ago

    Loading...
    Readme
    Loading...