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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dc3cab6eab1e521ecdb9bf192b7df139a70c318
4
- data.tar.gz: 7efa9e14ebc5287f48b167361fcf01b08d738789
3
+ metadata.gz: 1d21c4a3ee26ce9cebf040c7df9e6e63f780715f
4
+ data.tar.gz: 71a528450880c2186f72936a6da9db1db2338023
5
5
  SHA512:
6
- metadata.gz: a3d030cd15bdd0bf976889a9fc3744f279f683b7f48bdcac06024e96fac68407236ee978c41ea4c8fc4f11e3a8c6f0a2bfca572f7786619dc601a7242d2b10d5
7
- data.tar.gz: 531740e2c719299a2f21a23b75f1f30261cacd3e1306af7449749e2c5f2680e4808b0237425a3b99f2b077f932646268a631876647e7dc2dc1eb07e19023de6d
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 14.937k i/100ms
34
- load - oj 27.115k i/100ms
35
+ load - json 6.526k i/100ms
36
+ load - oj 10.010k i/100ms
35
37
  Calculating -------------------------------------
36
- load - json 164.117k 5.5%) i/s - 821.535k
37
- load - oj 321.167k 7.4%) i/s - 1.600M
38
+ load - json 72.797k20.4%) i/s - 345.878k
39
+ load - oj 158.011k13.2%) i/s - 770.770k
38
40
 
39
41
  Comparison:
40
- load - oj: 321166.6 i/s
41
- load - json: 164117.3 i/s - 1.96x slower
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 7.441k i/100ms
45
- dump - oj 22.182k i/100ms
46
+ dump - json 3.439k i/100ms
47
+ dump - oj 12.881k i/100ms
46
48
  Calculating -------------------------------------
47
- dump - json 79.879k 2.2%) i/s - 401.814k
48
- dump - oj 257.247k 0.5%) i/s - 1.287M
49
+ dump - json 38.250k29.6%) i/s - 158.194k
50
+ dump - oj 157.075k25.9%) i/s - 695.574k
49
51
 
50
52
  Comparison:
51
- dump - oj: 257247.1 i/s
52
- dump - json: 79878.8 i/s - 3.22x slower
53
+ dump - oj: 157074.8 i/s
54
+ dump - json: 38249.9 i/s - 4.11x slower
53
55
 
54
56
  ```
55
57
 
@@ -4,7 +4,7 @@ require "sidekiq"
4
4
 
5
5
  module Sidekiq
6
6
  def self.load_json(string)
7
- ::Oj.load(string)
7
+ ::Oj.strict_load(string)
8
8
  end
9
9
 
10
10
  def self.dump_json(object)
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Oj
3
- VERSION = "0.1.0".freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
5
5
  end
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.1.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: 2016-04-05 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj