msgpack-cli icon indicating copy to clipboard operation
msgpack-cli copied to clipboard

Please advice when using MessagePack to the API communication

Open st0326s opened this issue 10 years ago • 0 comments

It is the last of the continuation of the issue, but we are worried it is not know how should I as copper when using MessagePack to the API communication.

Also continued to research from there, I was able to obtain the measurement values, such as the following.

■Android Test Case 1(Long [100000] 100 times serialization deserialization of average value)   MsgPack(Type=Array):    serialization time :66msec    deserialization time:46msec   Json:    serialization time :352msec    deserialization time:759msec

Test Case 2 (Generic by List<Long> 100,000 data 100 times serialization deserialization of average value)   MsgPack(Type=Array):    serialization time :223msec    deserialization time:1635msec   Json:    serialization time :352msec    deserialization time:759msec

Test Case 3 (string [100000] 100 times serialization deserialization of average value)   MsgPack(Type=Array):    serialization time :222msec    deserialization time:664msec   Json:    serialization time :219msec    deserialization time:588msec

Test Case 4 (Dictionary<string,object> 100 times serialization deserialization of average value)   MsgPack(Type=Map):    serialization time :26msec    deserialization time:9msec   Json:    serialization time :5msec    deserialization time:7msec

■ questions I wanted to try to create the data to send this measurement result to the API to the original. If an API only numeric array I Messagepack is faster, but the API In the normal to use a variety of types, I think the type's simple is to use the Map.

Is it should be How to speed up the type of numbers and strings and sends it to the type Array?

st0326s avatar Sep 07 '15 15:09 st0326s