GIS-Distance

 view release on metacpan or  search on metacpan

author/bench  view on Meta::CPAN

    $iters,
    { map { @$_ } @tests },
);

__END__

=head1 NAME

author/bench - Benchmark formulas and the various interfaces to them.

=head1 SYNOPSIS

    # Benchmark every GIS::Distance and GIS::Distance::Fast formula.
    author/bench
    
    # Show which benchmarks would be run for every GIS::Distance::Fast
    # and Geo::Distance::XS formula, but don't run them.
    author/bench --geo --no-pp --dry-run
    
    # Displays this handy documentation!
    author/bench --help

=head1 OPTIONS

=head2 formula

    --formula=<formula-short-name>
    --formaul=Null
    -f Haversine -f Cosine

By default all formulas will be considered for benchmarking.
If you'd like to limit this then you can specify one or more
formulas with this option.

=head2 pp

    --no-pp

Disable the C<pp> option, meaning no pure-perl formulas will
be included.

=head2 xs

    --no-xs

Disable the C<xs> option, meaning no XS formulas will
be included.

=head2 geo

    --geo

L<Geo::Distance> and/or L<Geo::Distance::XS> formulas will be
included.

=head2 iters

    --iters=100
    -i 10000000

The number of iterations to benchmark each formula against.

The default is C<5,000,000>.

=head2 dry-run

    --dry-run
    -n

Lists all the benchmarks which would be run, but does not run them.

=head2 help

    --help
    -h

Displays this handy documentation!

=head1 AUTHORS AND LICENSE

See L<GIS::Distance/AUTHORS> and L<GIS::Distance/LICENSE>.

=cut



( run in 0.894 second using v1.01-cache-2.11-cpan-71847e10f99 )