mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-18 11:39:02 +02:00
erlang: added simple performance test.
This commit is contained in:
@@ -359,4 +359,9 @@ test_([Before|Rest])->
|
|||||||
other_test()->
|
other_test()->
|
||||||
{more,1}=msgpack:unpack(<<>>).
|
{more,1}=msgpack:unpack(<<>>).
|
||||||
|
|
||||||
|
benchmark_test()->
|
||||||
|
Data=[test_data() || _ <- lists:seq(0, 10000)],
|
||||||
|
S=?debugTime(" serialize", msgpack:pack(Data)),
|
||||||
|
{Data,<<>>}=?debugTime("deserialize", msgpack:unpack(S)).
|
||||||
|
|
||||||
-endif.
|
-endif.
|
||||||
|
Reference in New Issue
Block a user