fcmpush 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +28 -2
  3. data/lib/fcmpush/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca7fcf74ed6f65f87af9ac77aabdda313a8593d1954d6250be94e7f4d819307c
4
- data.tar.gz: fd3fa1913cef61ff15b36791a7fc9b35032aaaa1f0e3d5e98faa46c0b3903f24
3
+ metadata.gz: 559e27187a6c96f09ab2f769ade358a3eee9a99880ca17662d5cc2fcec9956c9
4
+ data.tar.gz: 1dca034d51e28ff9474d71550d8601ae131762b93d0ca80a014703b234a97045
5
5
  SHA512:
6
- metadata.gz: 4bc377cb3eacfd52f28ef7e4d882c20314b0461d1cd12db8ecaf508cb0b2568514760cae969d296c099290704a5169aa08309dbf5eb38b21aaf8910a013ce3e2
7
- data.tar.gz: 0a7b0625078de8fa54e300d088fdc6bf4228cfda70033c7489514e4943738faa0c88259e955da3ba4b8002e389f59b5315748233576871decb9c1c75c3636f60
6
+ metadata.gz: 670206fca4a4e671044acf9ff8629a1260d719c632db385a2f015f34ab1192f1a79fb4dda29131b3e45bb8c8c24aec0790cc56eb33712103b9a944370c2d978f
7
+ data.tar.gz: 0c5477c168493bf36031824b4f1ae2db7505c8b9c9b81c146982ffc0481f5a83ab86b0813b5d8b5c2022632c2a24a2fdff6c40190f61345ea025a4b14718facd
data/README.md CHANGED
@@ -87,8 +87,34 @@ json = response.json
87
87
  json[:results] # => [{}, {"error":"NOT_FOUND"}, ...] ref. https://developers.google.com/instance-id/reference/server#example_result_3
88
88
  ```
89
89
 
90
- ## Future Work
91
- - [DEV] compare other gems
90
+ ## Performance
91
+ - fcmpush's performance is good. (at least not so bad.)
92
+ - [andpush](https://github.com/yuki24/andpush) is the fastest, but it uses legacy HTTP API.
93
+ - fcmpush is fastest in gems using V1 HTTP API(fcmpush, [google-api-fcm](https://github.com/oniksfly/google-api-fcm), [firebase_cloud_messenger](https://github.com/vincedevendra/firebase_cloud_messenger)).
94
+ - benchmark detail is [here](https://gist.github.com/miyataka/8787021724ee7dc5cecea88913f3af8c).
95
+ ```
96
+ Warming up --------------------------------------
97
+ andpush 1.000 i/100ms
98
+ fcm 1.000 i/100ms
99
+ fcmpush 1.000 i/100ms
100
+ google-api-fcm 1.000 i/100ms
101
+ firebase_cloud_messenger
102
+ 1.000 i/100ms
103
+ Calculating -------------------------------------
104
+ andpush 13.161 (±15.2%) i/s - 63.000 in 5.010981s
105
+ fcm 6.177 (±16.2%) i/s - 30.000 in 5.066638s
106
+ fcmpush 7.237 (±13.8%) i/s - 36.000 in 5.098668s
107
+ google-api-fcm 6.889 (±14.5%) i/s - 33.000 in 5.031508s
108
+ firebase_cloud_messenger
109
+ 2.766 (± 0.0%) i/s - 14.000 in 5.079574s
110
+
111
+ Comparison:
112
+ andpush: 13.2 i/s
113
+ fcmpush: 7.2 i/s - 1.82x slower
114
+ google-api-fcm: 6.9 i/s - 1.91x slower
115
+ fcm: 6.2 i/s - 2.13x slower
116
+ firebase_cloud_messenger: 2.8 i/s - 4.76x slower
117
+ ```
92
118
 
93
119
  ## Contributing
94
120
 
@@ -1,3 +1,3 @@
1
1
  module Fcmpush
2
- VERSION = '0.9.1'.freeze
2
+ VERSION = '0.9.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fcmpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - miyataka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-21 00:00:00.000000000 Z
11
+ date: 2019-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: googleauth