Skip to content

Commit 661d7d0

Browse files
authored
Update README.md
1 parent 894a9f8 commit 661d7d0

File tree

1 file changed

+64
-11
lines changed

1 file changed

+64
-11
lines changed

benchmarks/README.md

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,61 @@ bundle exec ruby decompress.rb city.json
1111

1212

1313
# Result
14-
## Compression
14+
## 2022/06/20
15+
```
16+
MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
17+
2 GHz クアッドコアIntel Core i5
18+
16 GB 3733 MHz LPDDR4X
19+
```
20+
### Compression
21+
```
22+
% bundle exec ruby compress.rb city.json
23+
Warming up --------------------------------------
24+
snappy 40.000 i/100ms
25+
gzip 3.000 i/100ms
26+
xz 1.000 i/100ms
27+
lz4 29.000 i/100ms
28+
zstd 18.000 i/100ms
29+
Calculating -------------------------------------
30+
snappy 402.381 (± 8.2%) i/s - 2.040k in 5.112554s
31+
gzip 32.348 (±12.4%) i/s - 162.000 in 5.109498s
32+
xz 1.777 (± 0.0%) i/s - 9.000 in 5.116790s
33+
lz4 291.582 (±12.3%) i/s - 1.450k in 5.076016s
34+
zstd 174.981 (±12.6%) i/s - 864.000 in 5.032567s
35+
```
36+
#### Data Size
37+
##### before
38+
% ls -alh samples/city.json
39+
-rw-r--r-- 1 springmt staff 1.7M 12 27 15:42 samples/city.json
40+
##### after
41+
% ls -alh results
42+
total 2784
43+
drwxr-xr-x 7 springmt staff 224B 12 27 15:42 .
44+
drwxr-xr-x 11 springmt staff 352B 12 27 15:42 ..
45+
-rw-r--r-- 1 springmt staff 219K 6 20 10:06 city.json.gzip
46+
-rw-r--r-- 1 springmt staff 365K 6 20 10:06 city.json.lz4
47+
-rw-r--r-- 1 springmt staff 358K 6 20 10:06 city.json.snappy
48+
-rw-r--r-- 1 springmt staff 166K 6 20 10:06 city.json.xz
49+
-rw-r--r-- 1 springmt staff 225K 6 20 10:06 city.json.zstd
50+
### Decompression
51+
```
52+
% bundle exec ruby decompress.rb city.json
53+
Warming up --------------------------------------
54+
snappy 85.000 i/100ms
55+
gzip 20.000 i/100ms
56+
xz 4.000 i/100ms
57+
lz4 70.000 i/100ms
58+
zstd 54.000 i/100ms
59+
Calculating -------------------------------------
60+
snappy 862.639 (± 2.6%) i/s - 4.335k in 5.028667s
61+
gzip 207.820 (± 6.7%) i/s - 1.040k in 5.026189s
62+
xz 41.649 (± 4.8%) i/s - 208.000 in 5.004779s
63+
lz4 680.900 (± 3.5%) i/s - 3.430k in 5.043917s
64+
zstd 541.291 (± 7.4%) i/s - 2.700k in 5.037102s
65+
```
1566

16-
### Performance
67+
## 2017/02/16(https://github.com/SpringMT/zstd-ruby/commit/0ca4b99e4ffaf18b39b2cdb102b5b5bc31a18071)
68+
### Compression
1769

1870
```
1971
% bundle exec ruby compress.rb city.json
@@ -31,18 +83,15 @@ Calculating -------------------------------------
3183
zstd 195.722 (±14.3%) i/s - 952.000 in 5.027488s
3284
```
3385

34-
35-
36-
### Data Size
37-
38-
#### before
86+
#### Data Size
87+
##### before
3988

4089
```
4190
% ls -alh samples/city.json
4291
-rw-r--r--@ 1 makoto staff 1.7M 2 5 16:07 samples/city.json
4392
```
4493

45-
#### after
94+
##### after
4695

4796
```
4897
% ls -alh results
@@ -54,8 +103,7 @@ total 2712
54103
-rw-r--r-- 1 makoto staff 238K 2 5 16:08 city.json.zstd
55104
```
56105

57-
## Decompression
58-
### Performance
106+
### Decompression
59107

60108
```
61109
Warming up --------------------------------------
@@ -72,4 +120,9 @@ Calculating -------------------------------------
72120
zstd 302.455 (±16.5%) i/s - 1.488k in 5.070354s
73121
```
74122

75-
123+
## YYYY/MM/DD
124+
### Compression
125+
#### Data Size
126+
##### before
127+
##### after
128+
### Decompression

0 commit comments

Comments
 (0)