ritsudo 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 +8 -1
- data/lib/ritsudo/collector.rb +4 -0
- data/lib/ritsudo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9db2aad8d6c78aa8b392b74ffb508a2554560e08e13ae7c6eb438f97f65173b
|
4
|
+
data.tar.gz: ef3efc7c22784676d04ae7c37e5a462c82ff5e7dccd700a778152b0a4c886e20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a548ebf3bef298741a8a4bfdb4f2540a42ce063830f1a179c91af0a7fe9260d8ceb88133f884b4359783325b5b2600c480d452e2ec0557cfaa2d684ec112227
|
7
|
+
data.tar.gz: ee1c937fdd34a48cc9441de79b41f425ac9f75c600f37c0e8e67de691346e1402801ad193ce2ad047162b21afaa9773320aa8b468d65428a72a35a8e9c456628
|
data/README.md
CHANGED
@@ -12,11 +12,12 @@ install it yourself as:
|
|
12
12
|
$ gem install ritsudo
|
13
13
|
|
14
14
|
## Usage
|
15
|
+
### CLI
|
15
16
|
```
|
16
17
|
ritsudo -a=https://example.com -m "example.com" -u "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25"
|
17
18
|
```
|
18
19
|
|
19
|
-
|
20
|
+
### Ruby
|
20
21
|
```ruby
|
21
22
|
#!/usr/bin/env ruby
|
22
23
|
require "bundler/setup"
|
@@ -33,7 +34,10 @@ benchmark.collector.documents.display
|
|
33
34
|
benchmark.collector.xhrs.display
|
34
35
|
```
|
35
36
|
|
37
|
+
### Result
|
36
38
|
```
|
39
|
+
Ritsudo requests 5 times: https://example.com
|
40
|
+
.....
|
37
41
|
[Misc]
|
38
42
|
+------------------+--------+------+-----+-------+
|
39
43
|
| name | avg | max | min | count |
|
@@ -42,12 +46,14 @@ benchmark.collector.xhrs.display
|
|
42
46
|
+------------------+--------+------+-----+-------+
|
43
47
|
| Loaded | 1235.6 | 1672 | 975 | 5 |
|
44
48
|
+------------------+--------+------+-----+-------+
|
49
|
+
|
45
50
|
[Document]
|
46
51
|
+--------------------------+--------+--------+--------+-------+
|
47
52
|
| url | avg | max | min | count |
|
48
53
|
+--------------------------+--------+--------+--------+-------+
|
49
54
|
| http://www.example.com/ | 597.56 | 858.15 | 433.51 | 5 |
|
50
55
|
+--------------------------+--------+--------+--------+-------+
|
56
|
+
|
51
57
|
[XHR]
|
52
58
|
+------------------------------------------+---------+---------+---------+-------+-------------+
|
53
59
|
| url | avg | max | min | count | uncompleted |
|
@@ -56,6 +62,7 @@ benchmark.collector.xhrs.display
|
|
56
62
|
+------------------------------------------+---------+---------+---------+-------+-------------+
|
57
63
|
| http://www.example.com/slow_xhr_request | - | - | - | - | 5 |
|
58
64
|
+------------------------------------------+---------+---------+---------+-------+-------------+
|
65
|
+
|
59
66
|
[Script]
|
60
67
|
+--------------------------------+-------+-------+-------+-------+-------------+
|
61
68
|
| url | avg | max | min | count | uncompleted |
|
data/lib/ritsudo/collector.rb
CHANGED
data/lib/ritsudo/version.rb
CHANGED