Skip to content

Commit 050d3e4

Browse files
authored
Merge pull request #14 from niXman/master
yas updated to v5.0 and avro updated to v1.8.2 because its prev link …
2 parents 6d933ed + ebeba17 commit 050d3e4

File tree

7 files changed

+367
-133
lines changed

7 files changed

+367
-133
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ ExternalProject_Add(
162162
avro
163163
DEPENDS boost
164164
PREFIX ${avro_PREFIX}
165-
URL "http://www.eu.apache.org/dist/avro/avro-1.8.1/avro-src-1.8.1.tar.gz"
166-
URL_MD5 "bc1901bd2a83956dbb9e7f968affc607"
165+
URL "http://www.eu.apache.org/dist/avro/avro-1.8.2/avro-src-1.8.2.tar.gz"
166+
URL_MD5 "cb56b43eb45c3db13a35b56f6df633e2"
167167
CONFIGURE_COMMAND cmake -DBOOST_INCLUDEDIR=${boost_PREFIX}/include -DBOOST_LIBRARYDIR=${boost_PREFIX}/lib -DBoost_NO_SYSTEM_PATHS=ON -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} -DCMAKE_INSTALL_PREFIX=${avro_PREFIX} -DBUILD_SHARED_LIBS=OFF ${avro_PREFIX}/src/avro/lang/c++/
168168
# Due to some issues with using statically built boost libraries AND zlib in avro tests
169169
# build only necessary parts and install them in a very hackish way.
@@ -196,8 +196,8 @@ set(yas_PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/yas)
196196
ExternalProject_Add(
197197
yas
198198
PREFIX ${yas_PREFIX}
199-
URL "https://github.com/niXman/yas/archive/4.0.zip"
200-
URL_MD5 "7f9ed59c21020005046297934c196bd8"
199+
URL "https://github.com/niXman/yas/archive/5.0.zip"
200+
URL_MD5 "1acaef7cb8ab4178453dfa67a0112ea8"
201201
CONFIGURE_COMMAND ""
202202
BUILD_COMMAND ""
203203
INSTALL_COMMAND mkdir -p ${yas_PREFIX}/include/ && cp -r ${yas_PREFIX}/src/yas/include/yas ${yas_PREFIX}/include/

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,22 @@ on a typical desktop computer with Intel Core i5 processor running Ubuntu 14.04.
4949
* boost 1.62.0
5050
* msgpack 2.0.0
5151
* cereal 1.2.1
52-
* avro 1.8.1
52+
* avro 1.8.2
5353
* capnproto 0.5.3
5454
* flatbuffers 1.4.0
55-
* YAS 4.0.0
55+
* YAS 5.0.0
5656

5757
| serializer | object's size | avg. total time |
5858
| -------------- | ------------- | --------------- |
59-
| thrift-binary | 17017 | 13748 |
60-
| thrift-compact | 11597 | 25947 |
61-
| protobuf | 12571 | 24196 |
62-
| boost | 17470 | 21717 |
63-
| msgpack | 11902 | 29597 |
64-
| cereal | 17416 | 11121 |
65-
| avro | 12288 | 31880 |
66-
| yas | 17416 | 5113 |
67-
| yas-compact | 12830 | 21858 |
59+
| thrift-binary | 17017 | 13335 |
60+
| thrift-compact | 13378 | 33205 |
61+
| protobuf | 16116 | 24717 |
62+
| boost | 17470 | 21760 |
63+
| msgpack | 13402 | 33815 |
64+
| cereal | 17416 | 11031 |
65+
| avro | 16384 | 44187 |
66+
| yas | 17416 | 3223 |
67+
| yas-compact | 13553 | 21481 |
6868

6969
###### Size
7070

@@ -80,8 +80,8 @@ serialize/deserialize cycle of the already built data structure.
8080

8181
| serializer | object's size | avg. total time |
8282
| -------------- | ------------- | --------------- |
83-
| capnproto | 17768 | 4460 |
84-
| flatbuffers | 17632 | 12755 |
83+
| capnproto | 17768 | 4849 |
84+
| flatbuffers | 17632 | 12520 |
8585

8686
![Time](images/time2.png)
8787

data.hpp

Lines changed: 334 additions & 100 deletions
Large diffs are not rendered by default.

images/graphs.R

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,32 @@ names.time2 <- c("capnproto", "flatbuffers")
77
# for t in thrift-binary thrift-compact protobuf boost msgpack cereal avro yas yas-compact; do echo -n "$t: "; ./benchmark 1 $t | grep size | awk '{print $4}'; done
88
size <- c(
99
17017 # thrift-binary
10-
,11597 # thrift-compact
11-
,11574 # protobuf
10+
,13378 # thrift-compact
11+
,16116 # protobuf
1212
,17470 # boost
13-
,11802 # msgpack
13+
,13402 # msgpack
1414
,17416 # cereal
15-
,12288 # avro
15+
,16384 # avro
1616
,17768 # capnproto
1717
,17632 # flatbuffers
1818
,17416 # yas
19-
,12830 # yas-compact
19+
,13553 # yas-compact
2020
)
2121
# for t in thrift-binary thrift-compact protobuf boost msgpack cereal avro yas yas-compact; do rm -f /tmp/$t.time; echo -n "$t: "; for i in `seq 1 50`; do ./benchmark 1000000 $t | grep time | awk '{print $4}' >>/tmp/$t.time; done; awk '{ sum += $1 } END { print sum/50}' /tmp/$t.time; done
2222
time <- c(
23-
13748 # thrift-binary
24-
,25947 # thrift-compact
25-
,24196 # protobuf
26-
,21717 # boost
27-
,29597 # msgpack
28-
,11121 # cereal
29-
,31880 # avro
30-
,5113 # yas
31-
,21858 # yas-compact
23+
13335 # thrift-binary
24+
,33205 # thrift-compact
25+
,24717 # protobuf
26+
,21760 # boost
27+
,33815 # msgpack
28+
,11031 # cereal
29+
,44187 # avro
30+
,3223 # yas
31+
,21481 # yas-compact
3232
)
3333
time2 <- c(
34-
4460 # capnproto
35-
,12755 # flatbuffers
34+
4849 # capnproto
35+
,12520 # flatbuffers
3636
)
3737

3838
data.size <- as.data.frame(list(serializer = names.size, size = size))

images/size.png

16 Bytes
Loading

images/time.png

-124 Bytes
Loading

images/time2.png

45 Bytes
Loading

0 commit comments

Comments
 (0)