added perl support

This commit is contained in:
Tokuhiro Matsuno
2009-04-15 12:55:41 +09:00
parent 5bd53f018f
commit d449b1d20d
16 changed files with 7734 additions and 0 deletions

16
perl/benchmark/p1.pl Normal file
View 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) },
}
);