Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HdrHistogram/hdrhistogram-go
A pure Go implementation of Gil Tene's HDR Histogram.
https://github.com/HdrHistogram/hdrhistogram-go
Last synced: 2 months ago
JSON representation
A pure Go implementation of Gil Tene's HDR Histogram.
- Host: GitHub
- URL: https://github.com/HdrHistogram/hdrhistogram-go
- Owner: HdrHistogram
- License: mit
- Created: 2014-07-14T00:27:16.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-08-24T21:10:27.000Z (over 3 years ago)
- Last Synced: 2024-10-29T17:56:01.872Z (2 months ago)
- Language: Go
- Size: 334 KB
- Stars: 436
- Watchers: 17
- Forks: 64
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome - HdrHistogram/hdrhistogram-go - 08 star:0.4k fork:0.1k A pure Go implementation of Gil Tene's HDR Histogram. (Go)
README
hdrhistogram-go
===============
[![Gitter](https://badges.gitter.im/Join_Chat.svg)](https://gitter.im/HdrHistogram/HdrHistogram)
![Test](https://github.com/HdrHistogram/hdrhistogram-go/workflows/Test/badge.svg?branch=master)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/HdrHistogram/hdrhistogram-go/blob/master/LICENSE)
[![Codecov](https://codecov.io/gh/HdrHistogram/hdrhistogram-go/branch/master/graph/badge.svg)](https://codecov.io/gh/HdrHistogram/hdrhistogram-go)A pure Go implementation of the [HDR Histogram](https://github.com/HdrHistogram/HdrHistogram).
> A Histogram that supports recording and analyzing sampled data value counts
> across a configurable integer value range with configurable value precision
> within the range. Value precision is expressed as the number of significant
> digits in the value recording, and provides control over value quantization
> behavior across the value range and the subsequent value resolution at any
> given level.For documentation, check [godoc](https://pkg.go.dev/github.com/HdrHistogram/hdrhistogram-go).
## Getting Started
### Installing
Use `go get` to retrieve the hdrhistogram-go implementation and to add it to your `GOPATH` workspace, or project's Go module dependencies.```go
go get github.com/HdrHistogram/hdrhistogram-go
```To update the implementation use `go get -u` to retrieve the latest version of the hdrhistogram.
```go
go get github.com/HdrHistogram/hdrhistogram-go
```### Go Modules
If you are using Go modules, your `go get` will default to the latest tagged
release version of the histogram. To get a specific release version, use
`@` in your `go get` command.```go
go get github.com/HdrHistogram/[email protected]
```To get the latest HdrHistogram/hdrhistogram-go master repository change use `@latest`.
```go
go get github.com/HdrHistogram/hdrhistogram-go@latest
```### Repo transfer and impact on go dependencies
-------------------------------------------
This repository has been transferred under the github HdrHstogram umbrella with the help from the orginal
author in Sept 2020. The main reasons are to group all implementations under the same roof and to provide more active contribution
from the community as the orginal repository was archived several years ago.Unfortunately such URL change will break go applications that depend on this library
directly or indirectly, as discussed [here](https://github.com/HdrHistogram/hdrhistogram-go/issues/30#issuecomment-696365251).The dependency URL should be modified to point to the new repository URL.
The tag "v0.9.0" was applied at the point of transfer and will reflect the exact code that was frozen in the
original repository.If you are using Go modules, you can update to the exact point of transfter using the `@v0.9.0` tag in your `go get` command.
```
go mod edit -replace github.com/codahale/hdrhistogram=github.com/HdrHistogram/[email protected]
```## Credits
-------Many thanks for Coda Hale for contributing the initial implementation and transfering the repository here.