erlang: added simple performance test description.

This commit is contained in:
UENISHI Kota 2010-07-08 23:39:47 +09:00
parent 45fb482ab4
commit 485915c27a

View File

@ -362,6 +362,7 @@ other_test()->
benchmark_test()->
Data=[test_data() || _ <- lists:seq(0, 10000)],
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.