sidekiq-oj 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -12
- data/lib/sidekiq/oj.rb +1 -1
- data/lib/sidekiq/oj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d21c4a3ee26ce9cebf040c7df9e6e63f780715f
|
4
|
+
data.tar.gz: 71a528450880c2186f72936a6da9db1db2338023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce74f1e1e142edfc3c025c307b4389ffca6ffb6b6c6912918b643115e93b95bec852415964ce94f7f1a47a0dfce361680a6fe276a41cd9bed9ed6c91913266a6
|
7
|
+
data.tar.gz: 68aa29753c1f134979e03b20aff9c6b32b1bcac75fa50e7268686310f8d65640b7be714bc4824735b6d0a7f16c27ea0cd19471c54c05714af50aec6f40e3447c
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Sidekiq::Oj
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/positionly/sidekiq-oj.svg?branch=master)](https://travis-ci.org/positionly/sidekiq-oj)
|
4
|
+
[![Dependency Status](https://gemnasium.com/positionly/sidekiq-oj.png)](https://gemnasium.com/positionly/sidekiq-oj)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/sidekiq-oj.png)](http://badge.fury.io/rb/sidekiq-oj)
|
4
6
|
|
5
7
|
Put [oj](https://github.com/ohler55/oj) in your [sidekiq](https://github.com/mperham/sidekiq) for some speed! If you're running Sidekiq at big scale this should save you some precious resources.
|
6
8
|
|
@@ -30,26 +32,26 @@ Or install it yourself as:
|
|
30
32
|
$ ruby spec/benchmark.rb
|
31
33
|
|
32
34
|
Warming up --------------------------------------
|
33
|
-
load - json
|
34
|
-
load - oj
|
35
|
+
load - json 6.526k i/100ms
|
36
|
+
load - oj 10.010k i/100ms
|
35
37
|
Calculating -------------------------------------
|
36
|
-
load - json
|
37
|
-
load - oj
|
38
|
+
load - json 72.797k (±20.4%) i/s - 345.878k
|
39
|
+
load - oj 158.011k (±13.2%) i/s - 770.770k
|
38
40
|
|
39
41
|
Comparison:
|
40
|
-
load - oj:
|
41
|
-
load - json:
|
42
|
+
load - oj: 158010.9 i/s
|
43
|
+
load - json: 72796.7 i/s - 2.17x slower
|
42
44
|
|
43
45
|
Warming up --------------------------------------
|
44
|
-
dump - json
|
45
|
-
dump - oj
|
46
|
+
dump - json 3.439k i/100ms
|
47
|
+
dump - oj 12.881k i/100ms
|
46
48
|
Calculating -------------------------------------
|
47
|
-
dump - json
|
48
|
-
dump - oj
|
49
|
+
dump - json 38.250k (±29.6%) i/s - 158.194k
|
50
|
+
dump - oj 157.075k (±25.9%) i/s - 695.574k
|
49
51
|
|
50
52
|
Comparison:
|
51
|
-
dump - oj:
|
52
|
-
dump - json:
|
53
|
+
dump - oj: 157074.8 i/s
|
54
|
+
dump - json: 38249.9 i/s - 4.11x slower
|
53
55
|
|
54
56
|
```
|
55
57
|
|
data/lib/sidekiq/oj.rb
CHANGED
data/lib/sidekiq/oj/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-oj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rafal Wojsznis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|