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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 603fc6ce174869a9c3d27542af06c746a45d3fe73f1020fe7b23e44c2ff241ca
4
- data.tar.gz: 0f150b4297fd626f591eb8bea711e265996ca9f00da01b978fd1ef6e03b28e41
3
+ metadata.gz: c9db2aad8d6c78aa8b392b74ffb508a2554560e08e13ae7c6eb438f97f65173b
4
+ data.tar.gz: ef3efc7c22784676d04ae7c37e5a462c82ff5e7dccd700a778152b0a4c886e20
5
5
  SHA512:
6
- metadata.gz: c40f89c0bfaf02efc63b3b13e7b09e2d1496a5cc3b0658356e88353c2d57be832ef95079386abfdb57bec394804c2daaa43f65393b536e0b9b496ad42c2f6de1
7
- data.tar.gz: b74a40836433223cf11aa7fef7eb66acdf212a399c2c094b112a544818a032daad3ad262aa34c93494b6c77c8c8cc7e0a8fb8ac0e32e829c42f4c4a9d49d84d0
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 |
@@ -35,9 +35,13 @@ module Ritsudo
35
35
 
36
36
  def report
37
37
  @misc.report
38
+ puts ""
38
39
  @documents.report
40
+ puts ""
39
41
  @xhrs.report
42
+ puts ""
40
43
  @scripts.report
44
+ puts ""
41
45
  end
42
46
  end
43
47
  end
@@ -1,3 +1,3 @@
1
1
  module Ritsudo
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ritsudo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - shingo morita