perl: tweaks for benchmarks

This commit is contained in:
gfx
2010-09-18 15:49:25 +09:00
parent 49379140c7
commit cb85dcfcb8
3 changed files with 9 additions and 12 deletions

View File

@@ -5,12 +5,7 @@ use JSON::XS;
use Storable;
use Benchmark ':all';
my $a = {
"method" => "handleMessage",
"params" => [ "user1", "we were just talking" ],
"id" => undef,
"array" => [ 1, 1024, 70000, -5, 1e5, 1e7, 1, 0, 3.14, sqrt(2) ],
};
my $a = do 'benchmark/data.pl';
print "-- serialize\n";
print "JSON::XS: $JSON::XS::VERSION\n";