Bencher-Scenarios-URI-Info
view release on metacpan or search on metacpan
lib/Bencher/Scenario/URI/Info/info.pm view on Meta::CPAN
=item * URI::ParseSearchString->se_term (perl_code)
Code template:
state $us = URI::ParseSearchString->new; $us->se_term(<url>)
=item * URI::ParseSearchString->se_term+findEngine (perl_code)
Code template:
state $us = URI::ParseSearchString->new; ($us->se_term(<url>), $us->findEngine(<url>))
=back
=head1 BENCHMARK DATASETS
=over
=item * google
=item * google maps (not included by default)
=back
=head1 SAMPLE BENCHMARK RESULTS
Run on: perl: I<< v5.34.0 >>, CPU: I<< Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz (2 cores) >>, OS: I<< GNU/Linux Ubuntu version 20.04 >>, OS kernel: I<< Linux version 5.3.0-64-generic >>.
Benchmark with default options (C<< bencher -m URI::Info::info >>):
#table1#
+--------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| participant | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+--------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
| URI::Info (all 3 plugins) | 24307 | 41.141 | 0.00% | 146.96% | 6e-11 | 20 |
| URI::Info (google plugin only) | 24500 | 40.8 | 0.72% | 145.20% | 3.7e-08 | 24 |
| URI::ParseSearchString->se_term+findEngine | 36200 | 27.6 | 48.87% | 65.89% | 1.3e-08 | 20 |
| URI::ParseSearchString->se_term | 60000 | 17 | 146.96% | 0.00% | 2.7e-08 | 20 |
+--------------------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate URI::Info (all 3 plugins) URI::Info (google plugin only) URI::ParseSearchString->se_term+findEngine URI::ParseSearchString->se_term
URI::Info (all 3 plugins) 24307/s -- 0% -32% -58%
URI::Info (google plugin only) 24500/s 0% -- -32% -58%
URI::ParseSearchString->se_term+findEngine 36200/s 49% 47% -- -38%
URI::ParseSearchString->se_term 60000/s 142% 140% 62% --
Legends:
URI::Info (all 3 plugins): participant=URI::Info (all 3 plugins)
URI::Info (google plugin only): participant=URI::Info (google plugin only)
URI::ParseSearchString->se_term: participant=URI::ParseSearchString->se_term
URI::ParseSearchString->se_term+findEngine: participant=URI::ParseSearchString->se_term+findEngine
=for html <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkY...
To display as an interactive HTML table on a browser, you can add option C<--format html+datatables>.
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/Bencher-Scenarios-URI-Info>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-Bencher-Scenarios-URI-Info>.
=head1 SEE ALSO
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 CONTRIBUTING
To contribute, you can send patches by email/via RT, or send pull requests on
GitHub.
Most of the time, you don't need to build the distribution yourself. You can
simply modify the code, then test via:
% prove -l
If you want to build the distribution (e.g. to try to install it locally on your
system), you can install L<Dist::Zilla>,
L<Dist::Zilla::PluginBundle::Author::PERLANCAR>, and sometimes one or two other
Dist::Zilla plugin and/or Pod::Weaver::Plugin. Any additional steps required
beyond that are considered a bug and can be reported to me.
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2021 by perlancar <perlancar@cpan.org>.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenarios-URI-Info>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=cut
( run in 2.825 seconds using v1.01-cache-2.11-cpan-364913b4093 )