Benchmark::Serialize::Library::ProtocolBuffers - Google::ProtocolBuffers benchmarks
# Load protocol specification from file: Benchmark::Serialize::Library::ProtocolBuffers->register( ProtocolBuffer1 => "test.proto" ); # Load protocol specification from string Benchmark::Serialize::Library::ProtocolBuffers->register( ProtocolBuffer2 => \" message Person { ... } " ); # Autogenerate specification from structure Benchmark::Serialize::Library::ProtocolBuffers->register( ProtocolBuffer3 => { foo => 17, bar => [ qw( xyzzy plugh ) ] } );
This module adds benchmarks for Google::ProtocolBuffers to Benchmark::Serialize. The protocol class can either be defined by using the interface definition language 'proto' or by autogeneration it from a given structure.
All benchmarks generated by this module will have the benchmark tag :ProtocolBuffers
:ProtocolBuffers
The following class methods is supported
Registers a benchmark of the protocol specified by $proto with the benchmark name $name. The module make a best guess of the class name to use for encoding. If this fails it can be forced by using a class => $classname option.
$proto
$name
class => $classname
Google::ProtocolBuffers
Peter Makholm, <peter at makholm.net>
<peter at makholm.net>
Please report any bugs or feature requests to bug-benchmark-serialize at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Benchmark-Serialize. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-benchmark-serialize at rt.cpan.org
Copyright 2009-2010 Peter Makholm.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Benchmark::Serialize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Benchmark::Serialize
CPAN shell
perl -MCPAN -e shell install Benchmark::Serialize
For more information on module installation, please visit the detailed CPAN module installation guide.