mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 21:18:23 +01:00
erlang: added simple performance test description.
This commit is contained in:
parent
45fb482ab4
commit
485915c27a
@ -362,6 +362,7 @@ other_test()->
|
|||||||
benchmark_test()->
|
benchmark_test()->
|
||||||
Data=[test_data() || _ <- lists:seq(0, 10000)],
|
Data=[test_data() || _ <- lists:seq(0, 10000)],
|
||||||
S=?debugTime(" serialize", msgpack:pack(Data)),
|
S=?debugTime(" serialize", msgpack:pack(Data)),
|
||||||
{Data,<<>>}=?debugTime("deserialize", msgpack:unpack(S)).
|
{Data,<<>>}=?debugTime("deserialize", msgpack:unpack(S)),
|
||||||
|
?debugFmt("for ~p KB test data.", [byte_size(S) div 1024]).
|
||||||
|
|
||||||
-endif.
|
-endif.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user