streaming_stats 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5bff37aefae7e5061d9b2b55b83ac8fe13ffb1d1d5650bd3f7b82f822b9fbcc
|
4
|
+
data.tar.gz: e1c267490d0ccc145d0066ecd564ef2966ed60645e53aa7602194b467450e1ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73c8e9637217ffa3cb34c8f3f0b213fc32bdd3b4de8698e984fd2ef50ca977f70eb089d93cc058870a1138eb1ee9d2cfd67e8ddfbb3acdacb1da57d71a8b9e33
|
7
|
+
data.tar.gz: f53c51f424818c710f4303e6d0edde4e493042b379ab5644540c8ff2aee06442df245b2a882bf52cc7a5de46a4a1b61615b2bff27fa930a1712ba2b5b2ab4fa0
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Streaming Stats
|
2
2
|
|
3
|
-
![Ruby](https://github.com/willf/streaming_stats/actions/workflows/ruby.yml/badge.svg)
|
3
|
+
![Ruby](https://github.com/willf/streaming_stats/actions/workflows/ruby.yml/badge.svg) [![Gem Version](https://badge.fury.io/rb/streaming_stats.svg)](https://badge.fury.io/rb/streaming_stats)
|
4
4
|
|
5
5
|
StreamingStats is a Ruby class that takes streaming numeric data
|
6
6
|
and return descriptive statistics with minimal overhead.
|
@@ -56,3 +56,29 @@ my very first Gist: https://gist.github.com/willf/187846.
|
|
56
56
|
The approximate quartile method is a port of [streaming-percentiles-js](https://github.com/sengelha/streaming-percentiles-js).
|
57
57
|
|
58
58
|
How to calculate streaming percentiles is discussed in Steven Englehardt's series, [Calculating Percentiles on Streaming Data](https://www.stevenengelhardt.com/series/calculating-percentiles-on-streaming-data/).
|
59
|
+
|
60
|
+
|
61
|
+
## Script version
|
62
|
+
|
63
|
+
There is also a script version, which will take read numbers from STDIN and produce results on a regular basis:
|
64
|
+
|
65
|
+
```
|
66
|
+
$ bin/streaming_stats --help
|
67
|
+
Prints streaming stats from numbers in $STDIN
|
68
|
+
-help, -h:
|
69
|
+
show help
|
70
|
+
--every x, -n x:
|
71
|
+
display stats every x numbers. default: 5
|
72
|
+
```
|
73
|
+
|
74
|
+
For example:
|
75
|
+
|
76
|
+
```
|
77
|
+
$ ping 8.8.8.8 | ack -oh '\d+\.\d{2,}' --flush | bin/streaming_stats -n 10
|
78
|
+
n v μ σ min max p99
|
79
|
+
10 16.99 19.77 2.61 16.99 26.43 21.36
|
80
|
+
20 25.19 20.56 2.87 16.99 27.13 26.43
|
81
|
+
^C
|
82
|
+
22 19.01 20.4 2.79 16.99 27.13 26.43
|
83
|
+
|
84
|
+
```
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: streaming_stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Fitzgerald
|
@@ -30,7 +30,7 @@ files:
|
|
30
30
|
- streaming_stats.rb
|
31
31
|
- test/test_helper.rb
|
32
32
|
- test/test_streaming_stats.rb
|
33
|
-
homepage: https://github.com/willf/
|
33
|
+
homepage: https://github.com/willf/streaming_stats_ruby
|
34
34
|
licenses:
|
35
35
|
- MIT
|
36
36
|
metadata: {}
|
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: '0'
|
51
51
|
requirements: []
|
52
|
-
rubygems_version: 3.
|
52
|
+
rubygems_version: 3.2.3
|
53
53
|
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: Calculates descriptive statistics from streams
|