diff --git a/CMakeLists.txt b/CMakeLists.txt index da93ad3..ff1dea8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,8 +162,8 @@ ExternalProject_Add( avro DEPENDS boost PREFIX ${avro_PREFIX} - URL "http://www.eu.apache.org/dist/avro/avro-1.8.1/avro-src-1.8.1.tar.gz" - URL_MD5 "bc1901bd2a83956dbb9e7f968affc607" + URL "http://www.eu.apache.org/dist/avro/avro-1.8.2/avro-src-1.8.2.tar.gz" + URL_MD5 "cb56b43eb45c3db13a35b56f6df633e2" 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++/ # Due to some issues with using statically built boost libraries AND zlib in avro tests # 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) ExternalProject_Add( yas PREFIX ${yas_PREFIX} - URL "https://github.com/niXman/yas/archive/4.0.zip" - URL_MD5 "7f9ed59c21020005046297934c196bd8" + URL "https://github.com/niXman/yas/archive/5.0.zip" + URL_MD5 "1acaef7cb8ab4178453dfa67a0112ea8" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND mkdir -p ${yas_PREFIX}/include/ && cp -r ${yas_PREFIX}/src/yas/include/yas ${yas_PREFIX}/include/ diff --git a/README.md b/README.md index 95fae9d..cdcc37d 100644 --- a/README.md +++ b/README.md @@ -49,22 +49,22 @@ on a typical desktop computer with Intel Core i5 processor running Ubuntu 14.04. * boost 1.62.0 * msgpack 2.0.0 * cereal 1.2.1 -* avro 1.8.1 +* avro 1.8.2 * capnproto 0.5.3 * flatbuffers 1.4.0 -* YAS 4.0.0 +* YAS 5.0.0 | serializer | object's size | avg. total time | | -------------- | ------------- | --------------- | -| thrift-binary | 17017 | 13748 | -| thrift-compact | 11597 | 25947 | -| protobuf | 12571 | 24196 | -| boost | 17470 | 21717 | -| msgpack | 11902 | 29597 | -| cereal | 17416 | 11121 | -| avro | 12288 | 31880 | -| yas | 17416 | 5113 | -| yas-compact | 12830 | 21858 | +| thrift-binary | 17017 | 13335 | +| thrift-compact | 13378 | 33205 | +| protobuf | 16116 | 24717 | +| boost | 17470 | 21760 | +| msgpack | 13402 | 33815 | +| cereal | 17416 | 11031 | +| avro | 16384 | 44187 | +| yas | 17416 | 3223 | +| yas-compact | 13553 | 21481 | ###### Size @@ -80,8 +80,8 @@ serialize/deserialize cycle of the already built data structure. | serializer | object's size | avg. total time | | -------------- | ------------- | --------------- | -| capnproto | 17768 | 4460 | -| flatbuffers | 17632 | 12755 | +| capnproto | 17768 | 4849 | +| flatbuffers | 17632 | 12520 | ![Time](images/time2.png) diff --git a/data.hpp b/data.hpp index ecdf85b..46e5d5a 100644 --- a/data.hpp +++ b/data.hpp @@ -8,106 +8,340 @@ const size_t kStringsCount = 100; const std::string kStringValue = "shgfkghsdfjhgsfjhfgjhfgjsffghgsfdhgsfdfkdjhfioukjhkfdljgdfkgvjafdhasgdfwurtjkghfsdjkfg"; const std::vector kIntegers = { - 34492,6603,44033,8874,47607,38416,20395,29192,38620,36775, - 35058,20501,39664,64574,11261,35679,16607,26020,39476,16699, - 21505,20947,53587,24746,45980,18827,137,61753,53340,25406, - 31601,38267,47951,62073,6738,42983,19246,34384,51818,157, - 628,40807,41177,49445,60677,23663,22312,20616,28922,20389, - 28543,48407,63986,7216,61601,6647,7956,47434,29257,28162, - 25582,29941,55019,60580,47503,6662,35851,23648,61464,43188, - 23519,37727,36778,62597,27203,31950,23796,62866,54914,4507, - 7775,39256,56141,36388,58687,42619,30909,47784,44209,38712, - 39387,37342,36743,17467,21181,36301,3918,10068,16204,50558, - 33633,6164,111,30859,56608,3320,17784,17842,3623,9258, - 38514,46795,60113,5658,38229,16986,64707,17010,35380,34811, - 13179,21861,23487,27513,18226,29112,41034,57128,27903,5484, - 64117,27389,45096,15321,42035,30690,13359,20005,35723,52158, - 29700,2895,46899,54388,50709,44269,11880,43493,46848,47523, - 64268,11074,673,62425,10609,21895,65353,51268,30048,8327, - 15020,13098,8614,9162,44230,34945,49663,35106,37002,13147, - 23661,47571,58767,27158,58907,18884,29017,49330,21161,20261, - 22381,57315,11034,39237,35876,52748,52135,3652,5573,11120, - 35955,16213,32062,32349,26362,7882,39528,40116,378,3620, - 23121,39308,39836,55477,12003,34089,54450,23870,1952,58445, - 38567,53959,32265,10354,57972,31510,264,44462,61043,48989, - 59504,34995,21591,56088,47298,64849,51629,64161,30990,34752, - 28699,58836,28310,27686,53360,58218,1382,12294,17239,24411, - 50012,11485,2732,43364,34433,12782,23748,25393,49417,19316, - 56304,54887,48832,4473,31997,8192,14593,32054,54448,60709, - 26749,18928,53574,8031,23681,61479,32115,48730,15694,51143, - 37232,25059,11327,31269,18035,24905,30575,35576,50878,63566, - 7213,10140,13121,13487,53861,3487,58552,11636,42412,59239, - 38086,16738,16197,45757,47844,18248,14385,64858,2785,43969, - 55873,34166,42623,15441,55015,9219,47800,3659,47139,54900, - 36120,23551,51858,64110,44719,51319,17756,56240,44986,22746, - 4944,50980,43252,4881,53006,12039,41658,49870,54730,10213, - 15296,9139,54583,7345,10260,58177,4126,46487,15644,1323, - 7767,40475,61334,33814,296,4202,58954,60710,47287,17842, - 62948,40443,16982,64708,45849,58300,16400,20536,38687,3543, - 14340,17591,37874,58282,12109,61025,17392,4014,39117,40912, - 24572,39998,57703,4373,28314,27751,11307,43386,28218,4223, - 10843,46516,48966,472,54111,55663,33428,52509,3845,5647, - 3164,36542,16868,5700,44693,1240,12757,22308,12715,9024, - 11999,42661,57211,50848,14944,59955,59208,41264,20033,23019, - 6368,43478,48738,14758,41280,24076,64014,52013,24937,46899, - 59046,52457,22428,27505,43159,17779,26304,23403,52731,32394, - 11878,6003,29789,43818,59314,20329,58069,13081,61424,27718, - 29996,21610,3205,14477,37523,35003,36286,62906,44191,31058, - 53068,826,49309,1705,44214,29908,19433,61948,46663,42710, - 15534,7807,36492,51075,56749,56906,28946,10316,12099,38561, - 41455,12573,42613,18640,64463,61175,61712,57225,10181,60007, - 49094,30559,59477,48603,15646,56068,58417,29704,40969,37530, - 18769,35771,62828,64452,43719,35415,9679,48100,37102,2014, - 37901,40564,5231,35279,31257,46681,36297,49026,30314,53309, - 1772,15145,34777,28019,28568,11004,55343,63726,32528,7595, - 7288,61637,55329,11723,41610,36885,34524,9144,58781,31381, - 31576,51243,65449,3883,24602,41301,49332,30071,24731,53076, - 18835,30948,31196,15758,58879,8007,16244,56729,31879,13324, - 30246,59487,40604,41656,9922,16564,41094,26477,14418,47704, - 46087,43602,35364,3468,28154,40737,22138,29789,22868,29611, - 137,18409,26366,11641,24154,33214,53316,54678,56564,6485, - 63859,30593,23819,63569,40255,28125,3821,58358,26034,27326, - 20168,39097,34762,3861,54465,48588,41685,9521,42716,60424, - 61811,64517,55711,28716,5876,16802,43184,32158,12460,33802, - 43630,57941,65454,57092,23134,1757,42449,56716,47808,31003, - 52358,59607,60476,14763,48276,61767,52541,15148,59109,60993, - 8607,56930,13760,52036,4132,61711,4915,59651,11062,750, - 32426,26748,61727,1006,38136,15828,5934,5901,37067,46827, - 11884,17393,6322,58799,45596,60370,61443,46045,64246,48987, - 2765,29446,10923,21875,48410,39056,42986,5562,17903,63126, - 57165,16031,63190,41857,20363,25337,60583,34165,12117,31144, - 15233,32201,50866,19101,22325,45683,41215,28885,42919,56843, - 26045,18702,32409,4802,11310,50435,18268,34070,56862,48307, - 27179,35722,23159,5270,62523,55928,37842,1469,52744,63149, - 61265,28590,10318,36834,31225,55332,26967,34844,53898,13550, - 45088,18743,10663,64974,29124,42159,34634,3895,22055,5649, - 53895,30439,38264,18351,980,62663,5479,32694,2392,14157, - 34319,34875,42709,52995,35927,63947,62191,63907,24903,15705, - 40955,50782,64934,62454,19404,53365,25945,57405,41221,12921, - 34291,15944,32298,4083,30010,44032,41316,28130,31221,18940, - 44513,5513,24837,54233,9899,39933,29068,23247,47440,52698, - 63372,8945,51493,57120,52514,20487,60260,59814,1484,24789, - 33866,45112,14526,60221,50973,25125,5991,48481,33017,59821, - 42654,51735,63141,55833,14490,35443,44171,62286,36815,23160, - 32977,31387,20525,49812,1295,43744,18217,34480,58203,61045, - 25528,48777,55709,47339,37999,49039,45022,35884,33880,44348, - 1526,6778,14068,16467,699,3820,2828,55811,62784,22958, - 21898,18678,15946,42931,47002,933,19312,32862,25994,6791, - 58533,15443,21048,11212,28899,9618,9053,61352,45516,23407, - 35256,58880,36406,36544,6981,30273,65302,37871,10065,19591, - 6464,15831,40594,62620,61300,39313,57367,56539,21501,61070, - 13632,27764,60371,47978,38670,33853,31205,49260,56140,18928, - 27245,47480,45291,64421,19547,29616,38608,45751,62137,18789, - 59923,25449,57664,9889,18109,26588,20278,51672,21209,23202, - 29419,55090,35147,32818,15270,49125,30648,64720,29814,57758, - 25352,11149,3703,16912,60520,34110,42527,1438,36294,17877, - 52345,28849,16183,34088,37493,39997,54697,970,14983,60268, - 19566,32131,54265,10366,49778,1520,43174,34006,64401,58034, - 35005,27621,65337,58940,9671,6424,61857,22542,30725,61777, - 12539,29197,24034,28450,2769,41642,50160,47847,18152,51053, - 47843,61836,25260,36400,22250,17010,29460,51714,42262,28230, - 54088,34531,17424,36588,53806,32847,11804,28344,16504,38941, - 23441,53703,31551,61990,59981,19355,32417,16169,64680,1600 + -7363025924956902506, 433747491, -1063289711, + -3099617426797642053, -10, -28373, + 56, -26152, 11187, + 16848, 52, 21, + -1507434656, -40, 1817515017, + 1733359561, 34, -5848022735330443435, + -2877218739042719860, -14312, 23, + -26, -13627, 206, + 6171277796506625478, 937414961, -9891, + -122, 519378804, 79, + 8, 34, -6130140954141921706, + -73, -616005134, -5037253190769578767, + 0, -1722533411, -654047289, + -5814, -257712663, -87, + -6247856385486233498, 4742432808147022328, -810583170, + -22, 6569946999860187637, -22276, + -2172499325432780121, -898744892, 1882785313, + 67, -845249652572657056, -103, + -1713893920, -803649978604894042, -368771773, + -2885635929107858908, 24954, 1357532846405761876, + 769985138, -6727, 3466300259955127320, + 2230714975058449906, -13476, -19, + 84, -25529, 7199838975151841639, + 34, 1326261707, -2163, + -8638513271658874509, -1065570052, -678072504, + 544751144, 118, -1628126727, + 122, -124, -64, + -12790, 559970209, -18411, + 36, -98453689293414928, 2381030868204480509, + -4220, 8994822118835925427, 25947, + -994516429, 29735, -75, + -16257, 1755158791, 1931770885540470507, + -114, 503040442223125581, -5642282595025354408, + 501831335, -49, -794973920, + 18, 7198923596506520233, -15162, + 8864, 25625, -8256, + -630542150, 28541, -100, + -92, -7986092697978475564, 3175680640580073309, + -1454692424, -31891, -63, + -103, 8487358384832003816, -23, + -589490175, -5552032683325052704, -64, + -80, -838179120, 8947214309209989793, + -77, -7411189781173852711, -11697, + 13436, 1815247385, -2981, + -8003717504228034722, 99, -3257811286542676197, + -4506293477750347316, -2711, 6160405628721311283, + 5, -1484233804362552782, -17226, + 1402014380, 733176135, -100, + 4500917704953902996, 18, 4866887786818606461, + -16225, 71, -22197, + 2405053731958747752, -5274, -2090003371, + 369436529, 1358574860523487735, -319773871, + 16641, 5063075396589477179, 52, + -21466, -81335356, -119208745560659154, + 21924, -1047970083662342224, -11013, + 76, 2903978634660040404, -101, + 6916945980630884447, -1303492917515564855, 5637, + 2248, -2030728347, 64, + 7925, -21779, 8123127443689130000, + 1417036646, -39040821, 117123230, + -32, -3724, -6344211701431602973, + -438193563, -113, -1926548125, + 28729, -15, 282434333, + 7871549853186581381, -433592745, -1055677683, + 17987, -83, 7754104478641525815, + 613327974, 14303, -8140203062797588352, + 1586717809361568140, -7393582019467132139, 5126447447975253192, + 1048, -1043188811128220318, 107, + 65, -4172277813576501980, 14, + 35, 26, -1236985343, + -15929, -15216, 878309091, + -56, -2011310606, 16389, + 660901290, -1862266658167057059, -2323661464700608064, + 1791007818, -5279836060148389134, -5205385764500646601, + -10347, 1193594059, 8052063426113313885, + 244985862, -7077002144560125490, -8930213132096048131, + -78, -27, -16260, + -3414386987451750431, 756976161, -1709959030, + -960927998945600368, -141710072, 23461, + -7185717208481827041, -89, -120, + -1307393865, 27698, -14165, + -1172826903, -8622113791680402438, -9400, + 8808312621540105568, -4020327146569329755, 30976, + 1866740273, -8231, 316317859, + 1805393137, 485604266, 72, + 2454665038702183726, 2094270224, 5686021805018713204, + -24844, 20365, -4282662953797348809, + -4566794532077649548, -6280124553363717403, -50, + 32, 1872404256, -89, + 316075246, -26268, -4964651049131855299, + -112, -8641327509012147836, -766536697, + 5993067092994742370, 1988899656, 1987725073, + -19950, -1893302419775054285, 121, + 48, 1948768928, 53, + -5243, 8738685391165513812, 365750484, + -93, -671864471, 706255199, + -8152, 83, -99, + -9, -3788717718769360742, 1307431297108392162, + 30, 8716, 1436862582, + 676135215, 22558, -122, + 2522141144230140132, 5576475, -758518299, + 147370106, 4988483904228877116, 947995246, + 1659982684302768005, -22312, -48, + 62, 79, 8537214179102424324, + -997135172, 875051761, -4848592808270937156, + -7697574980447404268, -37, -38, + -1242, 313438480, 11749, + -2986, 2030066008, 45, + 1395369669, 1700476845, -20, + -1287110890, -90, 1508574604756731954, + -26092, -3939205815465530879, -1187773708119651248, + -25834, -1206523470, -53, + -1592661607326053524, 18212, -33, + -41, 84266565, -2, + 571521241, -1636475055566264497, 891431496, + 23912, 10555, 30153, + 8030521545404037952, -6374825163279815327, 99, + 5241879833101903522, -1882027021007931225, 2040976134, + -3793021618212331483, 83, 5696250655933345190, + 1925480131260232953, 9358, -22648, + 25575, -648216540, -5019755232846076450, + 18622, 97, 554376950, + 21886, -54, 2494996710999596835, + -68, 18589, 40, + -177650370, -74, 6270, + 7538349603945271910, 25441, -893046314, + -276550117, -74, -1427284664, + -1049203211, 1869751501, 1213046221332824865, + -1043880054, 8765925747447038140, -370820427, + -5345471357868845747, -26330, -1155922900, + -18875, -7601800821521096438, -111, + -36, -12, 5533825000284329250, + 5580, 27733, -381021541, + 1178839104, 449775459, -103, + 2050845098, -7540, -56, + -928281908, -20046, -39, + 13864, -14159, -6270095092780779000, + 351242396, -12, 22, + 29, -5852080089825335588, -608640126283793658, + -474696155, -16, -1714338066, + 565158960, 17722, 3807577336920137242, + 21464, -117, -1769932179, + -6041961534343242191, -30, 12353, + -21, -6687, 1870487103, + 24573, 12314, 4684252076755731050, + -5659, 27965, 91, + -167679051461621384, -2617986404823401218, 5732516693149630710, + 9355, 4644, -120, + 1635415463, 361922141231153413, 2466639219506760025, + 21393, 7213002110551451773, 3033342980902020619, + -31, -7137143647102241872, 16, + -69, 6, 1789633802, + -1170546172, 111, 55, + -17896, -13714, 4026166599181052037, + 23950776344086454, 65, -2856, + -23465, 31786, 1312811083154161657, + 30348, -1361598898, 5359, + 72, -10252, 8623, + 632949786950606955, -1229307629, 8293273260624578598, + 29463, 1567105724, -3707, + -28435, 1074126623, 2034633745, + 2083185667, -5710229132046966643, -25357, + 1832738019, 4309, -4631, + -9301, 20237, -596, + 959424841, -5528099178530169963, 116, + -30632, -1106867457977143514, -1475677156535008452, + 31293, -16109, -2193967216581540557, + -23002, 2427339250189791946, 1679407924, + 6051529596673312178, -17, 8544, + 8459, -88, -1725552087, + 1285, 26448, 28484, + -17, -41, 8369898813248345434, + -2708157913359168058, 21622, 57, + -7398224664586362004, 28570, -6474382546613242389, + 31, 17798, -1863510699, + -5518, 111, -1553296730, + 448310778, -8772569120406406086, 15990, + -28920, -22497, -11057, + -103, 587231746, -2038804459132069098, + 4613338714938013216, 108, -5615213890232996984, + -936055357, -1065383251, -2294510694869443495, + -1477126894, -1673055163, -14284, + 25051, -3986940435767480559, 6041752349511510486, + 8041915042501314792, -3985160511342754585, -4028224886874105532, + 1052206264681358951, -3481428206376095861, -46, + 11550, -44, -2079227272, + 8719067110551671946, 1288444037, -25143, + 13602, 18, 21291, + 93, -23, -196800021, + 809571975, -31727, 8763, + -661706897555808507, 119, 31046, + -609547460, 23341, -60, + 6086126050563937403, 1895635109952004787, -13995, + -242886322, 8, 18, + -8976496123608892670, -79, -7244, + 2339688347224492944, 1104183683, -41, + -18494, -971434129, 8642919108023816312, + 21499, 28530, 70, + 17290, -840331438133652510, 1976117116, + 1570886366568950127, -101, -4534101121505215989, + 20200, -63, -272652970, + -28978, -349332691866139426, -25699, + -1462205442, 580911690, -6992751044112263311, + -107, -4575786221323014929, -195654910, + 24, -3835604712339792761, 1891312992, + 3828669121105386371, 124, -361586698, + -937894193, -993613123, 28859, + -15, 5009707794877239135, -223733485, + -1721452461, 574309197, 4782, + 97, 85, -1171035587590439385, + 8312, -927867487, -1292683344, + 11282, -125, 27129, + -10222, -4880, -1792231338, + 3758318694067395058, -55, -84, + -22923036, 4120698313340693392, -350, + -1899045160, 6349610473498904829, -60, + -7222845473356938029, 1047951567, -440818821, + -1537767148, -88, 25578, + -115, -243999549, -89, + -5312811593689077629, -103, 26, + -5027457524326464514, -721685921, 39, + -1362543574, -7795, -46, + 1218271119, 30705, -17514, + -23702, 6734, 6840, + 1667317608, -1661745750, 4, + 8033680933281782118, 13401, -70, + 1676130015, -2938419533750020834, -106, + -27755449, -29397, -4929554532967162102, + -9622, -14823, 3772308820372273715, + 807060921, -70, -22540, + 295102169980408575, 95, -11, + 88, 14465, -6365560894511598451, + 2012336419, -22616, -1459870277, + -2042522915, 118, -9980, + 1777954039, -882129585, -2656396557369034721, + 3781997027662552168, -1168752842, 3148967521842022774, + -1313696289, -37, -343582862, + 1874767111, -3112175777304194208, 7806167555058347392, + 100, -1895288719, 28, + -26159, 112, -30987, + 10776, 5232434611274207549, -21024, + -4483430693608459193, -345575112, -5917612984938832379, + 27328, 6730667831210033901, -2809111713636358967, + -12131, 4822, 26781, + 1764874174431404362, -5, 13527, + 7051481596943853310, 1610476985, 8720, + -20287, -2316801172356721072, -2912299227084801965, + 106, 30330, 6618, + -17862, 31142, 386494837, + 52, -494106843, 83, + -27348, -7719, 19660, + 886520682, 8960, 31956, + 7796428150878326604, 8017588419220571056, -541019595, + -26284, -63, -7344218109931640833, + 106, -2011965846, 69, + -7361118335520743856, -27, 111, + 7024055925625955713, -27008, 27548, + -724609890, -54, -1377801640, + 1220470256, -6671358653627050578, 1408981531, + -17834, -29778, 2154, + -1147751355, -1244589537, 18, + -8995, 1323880117, 4826, + 3738, -8381527448310097033, 880564802, + -18758, -2007492304, 124, + 4071608576664398793, 1334705552, -883131665, + 33, -2784068839981465237, -37, + -3292250044805079221, 111, 115, + -505824416, -1329516325, 6863, + -4161, -1484254646, -1647742965, + -684154112, 111, 441361943, + -6617, 1161471919, -29, + 305662650, -1681699761, 44, + -1583862705295675197, -12, -1474320271, + 7936, -917167826, -3860079915840664976, + -25661, 3477085156689013266, 42, + -22, -539422308, -16010, + 613115140, -69, 410916790, + -17638, 304410071, 1930928152, + -30701, -2531841024167117027, 28606, + 3307060987245058821, 108, -82, + -2122172733037128428, -30691, 3251187856144995874, + 520138362, 13352, -1406753793, + -12, -1553003040463479123, -424, + 41, -7233602940428378715, 7686418650162863126, + -78, -5181978843372623165, -4271415536440906941, + -31167, -64, 25, + 36, -56, 33, + 1537572386, 52, 109, + -88, -6332157348037570723, -9438, + 7636254448930979739, 2233977254874917251, 7657, + 2155349169311562054, 1166413491, 7444722622948486608, + 69, 117, 27307, + -44, -187114342, -20777, + 1478383894, -3599951908972507624, 1641800999, + -2645721906112636821, 6021605908604371589, 7303492435488755034, + 1434331208, 1090637426, 5897, + 68708828, 1529684989, -120, + -3, 10317, -70, + 1787, 103, 43, + 7692320002016645775, 13556915, -3414, + 1406705089, -303493095, -72, + 141171389, 8086501342466353726, -20791, + 91, 691745374, 908599936, + -31, 14639, -60, + 78, -86, 6603823110258632713, + -618490520, -1693031242, -3933, + -53, 2453457273625938952, 3902407010405367825, + 571240036, 121, -39, + -154065643, 606326497545505818, 33, + -1684204429, -2351, -21, + 104, 7409, 10084, + -1859407104, 7161074596731158945, 54, + -15176, 85, 8542258976263311155, + -510822799, 2634223587363843425, -838882481452157821, + 2085654442476583674, -7271513813046190366, 2971023759308078566, + 48, -534232402, 121, + 1676343143, 105, 739395768, + -56, 2633309473271351540, 101, + -669904691, 4664, 34, + 20, 2838549427757326550, -5628, + -98, -4576588524518425817, 112, + -8274461191016336405, -13461, -58, + -195317548, 85, -11575, + 1346208021602232582, 1133160616, -1128900985, + -3003, 26, -101, + -82, -1951476431, -14, + -6604659608414297734, -19725, 45, + -8721911835838330030, 99, -19640, + -763002527307034193, -1373418318317290504, -2, + 0, -4267535866276109679, -12369, + -1482097641, -1211973318, -8156336852661611782, + 58226505165754587, 1862931288479886958, 83, + -10440, -33, -18991, + -102 }; #endif diff --git a/images/graphs.R b/images/graphs.R index 5650113..baa9ba9 100644 --- a/images/graphs.R +++ b/images/graphs.R @@ -7,32 +7,32 @@ names.time2 <- c("capnproto", "flatbuffers") # 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 size <- c( 17017 # thrift-binary - ,11597 # thrift-compact - ,11574 # protobuf + ,13378 # thrift-compact + ,16116 # protobuf ,17470 # boost - ,11802 # msgpack + ,13402 # msgpack ,17416 # cereal - ,12288 # avro + ,16384 # avro ,17768 # capnproto ,17632 # flatbuffers ,17416 # yas - ,12830 # yas-compact + ,13553 # yas-compact ) # 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 time <- c( - 13748 # thrift-binary - ,25947 # thrift-compact - ,24196 # protobuf - ,21717 # boost - ,29597 # msgpack - ,11121 # cereal - ,31880 # avro - ,5113 # yas - ,21858 # yas-compact + 13335 # thrift-binary + ,33205 # thrift-compact + ,24717 # protobuf + ,21760 # boost + ,33815 # msgpack + ,11031 # cereal + ,44187 # avro + ,3223 # yas + ,21481 # yas-compact ) time2 <- c( - 4460 # capnproto - ,12755 # flatbuffers + 4849 # capnproto + ,12520 # flatbuffers ) data.size <- as.data.frame(list(serializer = names.size, size = size)) diff --git a/images/size.png b/images/size.png index 4ca5630..ea416a5 100644 Binary files a/images/size.png and b/images/size.png differ diff --git a/images/time.png b/images/time.png index 92d1573..23e52ab 100644 Binary files a/images/time.png and b/images/time.png differ diff --git a/images/time2.png b/images/time2.png index ea833dd..4b6c66b 100644 Binary files a/images/time2.png and b/images/time2.png differ