mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-14 03:10:40 +00:00
added perl support
This commit is contained in:
parent
5bd53f018f
commit
d449b1d20d
16 changed files with 7734 additions and 0 deletions
16
perl/benchmark/p1.pl
Normal file
16
perl/benchmark/p1.pl
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Data::MessagePack;
|
||||
use JSON::XS;
|
||||
use Benchmark ':all';
|
||||
|
||||
my $a = [0..2**24];
|
||||
|
||||
print "-- serialize\n";
|
||||
cmpthese(
|
||||
-1 => {
|
||||
json => sub { JSON::XS::encode_json($a) },
|
||||
mp => sub { Data::MessagePack->pack($a) },
|
||||
}
|
||||
);
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue