hstorly 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +41 -0
- data/hstorly.gemspec +1 -1
- data/lib/hstorly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd4ad1b9458d2f30edb784094444ea5e3de2295e
|
4
|
+
data.tar.gz: c81c9d74741e3a658384fabbecc5477b4b1d598c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a52cf5c2a9d697affe63190f1a47c782a3c43a642b756f7503ab3c1c3b021768dba3e27d85759c43db7a0c2b3b5930b7df36146615f87f12446b7dfac6695589
|
7
|
+
data.tar.gz: 5008fe2cdd70ff29c080a54c307695d5ede772fa137149079f2013163029ce9f632380eafa8334c92c8fef571082733570fe51f22b9ea041a76b61b40b9b64f0
|
data/README.md
CHANGED
@@ -9,6 +9,47 @@ This project is a fork of the amazing [bithavoc/multilang-hstore](https://github
|
|
9
9
|
* Remove a lot of features, focus on the core features.
|
10
10
|
* Due to focus on core features, better thread safety.
|
11
11
|
|
12
|
+
## Performance ##
|
13
|
+
|
14
|
+
**1,000,000 translation read operations**
|
15
|
+
|
16
|
+
hstorly:
|
17
|
+
```
|
18
|
+
1.310000 0.020000 1.330000 ( 1.342136)
|
19
|
+
```
|
20
|
+
|
21
|
+
multilang-hstore:
|
22
|
+
```
|
23
|
+
3.350000 0.040000 3.390000 ( 3.383317)
|
24
|
+
```
|
25
|
+
|
26
|
+
|
27
|
+
**Setting a new translation entry, 100,000 times**
|
28
|
+
|
29
|
+
hstorly:
|
30
|
+
```
|
31
|
+
6.650000 0.030000 6.680000 ( 6.681483)
|
32
|
+
```
|
33
|
+
|
34
|
+
multilang-hstore:
|
35
|
+
```
|
36
|
+
6.860000 0.030000 6.890000 ( 6.892723)
|
37
|
+
```
|
38
|
+
|
39
|
+
**Setting a completely new object with translations 100,000 times**
|
40
|
+
|
41
|
+
hstorly:
|
42
|
+
|
43
|
+
```
|
44
|
+
6.980000 0.020000 7.000000 ( 7.000557)
|
45
|
+
```
|
46
|
+
|
47
|
+
multilang-hstore:
|
48
|
+
|
49
|
+
```
|
50
|
+
7.620000 0.040000 7.660000 ( 7.669240)
|
51
|
+
```
|
52
|
+
|
12
53
|
## Installation
|
13
54
|
|
14
55
|
Add this line to your application's Gemfile:
|
data/hstorly.gemspec
CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
spec.add_development_dependency "minitest", "~> 5.0"
|
25
25
|
spec.add_development_dependency "pry", "~> 0.1"
|
26
|
+
spec.add_development_dependency 'pg', '~> 0.0'
|
26
27
|
|
27
|
-
spec.add_dependency 'pg', '~> 0.0'
|
28
28
|
spec.add_dependency 'activerecord', '~> 4.0'
|
29
29
|
end
|
data/lib/hstorly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hstorly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hendrik Kleinwaechter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -73,7 +73,7 @@ dependencies:
|
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0.0'
|
76
|
-
type: :
|
76
|
+
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|