mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-06 17:59:52 +00:00
erlang: added simple performance test.
This commit is contained in:
parent
167e2475d8
commit
45fb482ab4
1 changed files with 5 additions and 0 deletions
|
|
@ -359,4 +359,9 @@ test_([Before|Rest])->
|
|||
other_test()->
|
||||
{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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue