ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/JSON-XS/eg/bench
(Generate patch)

Comparing JSON-XS/eg/bench (file contents):
Revision 1.14 by root, Sun Jul 1 23:40:07 2007 UTC vs.
Revision 1.15 by root, Mon Jul 23 22:57:40 2007 UTC

4 4
5# which modules to test (JSON usually excluded because its so slow) 5# which modules to test (JSON usually excluded because its so slow)
6my %tst = ( 6my %tst = (
7# "JSON" => ['JSON::objToJson $perl' , 'JSON::jsonToObj $json'], 7# "JSON" => ['JSON::objToJson $perl' , 'JSON::jsonToObj $json'],
8# "JSON::PP" => ['$pp->encode ($perl)' , '$pp->decode ($json)'], 8# "JSON::PP" => ['$pp->encode ($perl)' , '$pp->decode ($json)'],
9 "JSON::DWIW" => ['$dwiw->to_json ($perl)' , '$dwiw->from_json ($json)'], 9# "JSON::DWIW" => ['$dwiw->to_json ($perl)' , '$dwiw->from_json ($json)'],
10 "JSON::PC" => ['$pc->convert ($perl)' , '$pc->parse ($json)'], 10# "JSON::PC" => ['$pc->convert ($perl)' , '$pc->parse ($json)'],
11# "JSON::Syck" => ['JSON::Syck::Dump $perl' , 'JSON::Syck::Load $json'], 11# "JSON::Syck" => ['JSON::Syck::Dump $perl' , 'JSON::Syck::Load $json'],
12 "JSON::XS" => ['to_json $perl' , 'from_json $json'], 12 "JSON::XS" => ['to_json $perl' , 'from_json $json'],
13 "JSON::XS/2" => ['$xs2->encode ($perl)' , '$xs2->decode ($json)'], 13 "JSON::XS/2" => ['$xs2->encode ($perl)' , '$xs2->decode ($json)'],
14 "JSON::XS/3" => ['$xs3->encode ($perl)' , '$xs3->decode ($json)'], 14 "JSON::XS/3" => ['$xs3->encode ($perl)' , '$xs3->decode ($json)'],
15 "Storable" => ['Storable::nfreeze $perl' , 'Storable::thaw $pst'], 15 "Storable" => ['Storable::nfreeze $perl' , 'Storable::thaw $pst'],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines