README.md in irrc-0.1.0 vs README.md in irrc-0.2.0
- old
+ new
@@ -62,12 +62,12 @@
```ruby
require 'irrc'
client = Irrc::Client.new
-client.query(:jpirr, 'AS-JPNIC', source: :jpirr) # queries JPIRR about AS-JPNIC with a SOURCE: filter
-client.query(:ripe, 'AS-RIPENCC', protocol: :ipv4) # queries RIPE Whoisd about AS-RIPENCC for IPv4 only
+client.query :jpirr, 'AS-JPNIC', source: :jpirr # queries JPIRR about AS-JPNIC with a SOURCE: filter
+client.query :ripe, 'AS-RIPENCC', protocol: :ipv4 # queries RIPE Whoisd about AS-RIPENCC for IPv4 only
client.perform # returns the results in a Hash
```
## Example
@@ -97,11 +97,11 @@
## Supported Ruby Versions
* Ruby >= 2.0.0
-Successfully tested with 2.0.0, 2.1.0, 2.1.1, 2.1.2.
+Successfully tested with 2.1.9, 2.2.6, 2.3.3 and 2.4.0.
## Threading
irrc will send queries to multiple IRR / Whois servers simultaneously in multi-threads. Single-thread processing for each server by default.
@@ -144,40 +144,18 @@
## Quick Benchmark
Here is a quick performance comparison with peval and irrpt.
-* Ordinary as-set
+| CLI command | user | system | cpu | total |
+| :----------------------------------------------- | --------: | ---------: | ------: | ---------: |
+| peval -h jpirr.nic.ad.jp 'afi ipv4, ipv6 AS-OCN' | 0.15s | 0.04s | 3% | 4.959 |
+| irrpt_list_prefixes AS-OCN | 0.21s | 0.09s | 3% | 9.693 |
+| **irrc -h jpirr AS-OCN** | **0.42s** | **0.12s** | **5%** | **9.622** |
+| **irrc -h jpirr -t 4 AS-OCN** | **0.39s** | **0.13s** | **19%** | **2.754** |
-| CLI command | user | system | cpu | total |
-| :------------------------------ | --------: | ---------: | ------: | ---------: |
-| peval -h jpirr.nic.ad.jp AS-OCN | 0.14s | 0.04s | 1% | 9.397 |
-| irrpt_eval AS-OCN | 0.35s | 0.06s | 5% | 8.021 |
-| **irrc -h jpirr AS-OCN** | **0.42s** | **0.09s** | **4%** | **10.639** |
-* Huge as-set
-
-Object caching may contribute to the query performance.
-
-| CLI command | user | system | cpu | total |
-| :---------------------------------------- | ----------: | ---------: | ------: | ----------: |
-| peval -h jpirr.nic.ad.jp AS-HURRICANE | 67.29s | 1.21s | 22% | 4:58.16 |
-| irrpt_eval AS-HURRICANE | 163.10s | 1.38s | 43% | 6:18.17 |
-| **irrc -h jpirr AS-HURRICANE** | **20.26s** | **1.84s** | **7%** | **4:54.37** |
-
-* Multiple as-set
-
-Multi-threading and object caching may contribute to the query performance.
-
-| CLI command | user | system | cpu | total |
-| :------------------------------------------------------------- | ----------: | ---------: | ------: | ----------: |
-| for i in AS-HURRICANE AS-GBLX; peval -h jpirr.nic.ad.jp $i | 76.47s | 1.08s | 20% | 6:15.80 |
-| irrpt_fetch | 174.21s | 1.29s | 44% | 6:38.50 |
-| irrc -h jpirr AS-HURRICANE AS-GBLX | 22.28s | 1.75s | 8% | 4:34.31 |
-| **irrc -h jpirr -t 2 AS-HURRICANE AS-GBLX** | **23.04s** | **1.81s** | **9%** | **4:09.27** |
-
-
## Contributing
Please fork it, fix and then send a pull request. :tada:
To run tests just type:
@@ -190,6 +168,6 @@
For questions or feedbacks write to my twitter @codeout.
## Copyright and License
-Copyright (c) 2014 Shintaro Kojima. Code released under the [MIT license](LICENSE).
+Copyright (c) 2017 Shintaro Kojima. Code released under the [MIT license](LICENSE).