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.
- checksums.yaml +4 -4
- data/README.md +28 -2
- data/lib/fcmpush/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 559e27187a6c96f09ab2f769ade358a3eee9a99880ca17662d5cc2fcec9956c9
|
|
4
|
+
data.tar.gz: 1dca034d51e28ff9474d71550d8601ae131762b93d0ca80a014703b234a97045
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
##
|
|
91
|
-
-
|
|
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
|
|
data/lib/fcmpush/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2019-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: googleauth
|