Bencher-Scenarios-StringFunctions
view release on metacpan or search on metacpan
lib/Bencher/Scenario/StringFunctions/CommonPrefix.pm view on Meta::CPAN
Legends:
: dataset=elems100prefix0 ds_tags= p_tags= participant=String::CommonPrefix::common_prefix perl=perl
=for html <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkY...
#table6#
{dataset=>"elems100prefix1"}
+-------------------------------------+-----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
| participant | dataset | ds_tags | p_tags | perl | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+-------------------------------------+-----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
| String::CommonPrefix::common_prefix | elems100prefix1 | | | perl | 37104.3 | 26.9511 | 0.00% | 0.00% | 0 | 20 |
+-------------------------------------+-----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate
37104.3/s --
Legends:
: dataset=elems100prefix1 ds_tags= p_tags= participant=String::CommonPrefix::common_prefix perl=perl
=for html <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkY...
#table7#
{dataset=>"elems10prefix0"}
+-------------------------------------+----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
| participant | dataset | ds_tags | p_tags | perl | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+-------------------------------------+----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
| String::CommonPrefix::common_prefix | elems10prefix0 | | | perl | 365948 | 2.73263 | 0.00% | 0.00% | 0 | 22 |
+-------------------------------------+----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate
365948/s --
Legends:
: dataset=elems10prefix0 ds_tags= p_tags= participant=String::CommonPrefix::common_prefix perl=perl
=for html <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkY...
#table8#
{dataset=>"elems10prefix1"}
+-------------------------------------+----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
| participant | dataset | ds_tags | p_tags | perl | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+-------------------------------------+----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
| String::CommonPrefix::common_prefix | elems10prefix1 | | | perl | 315581 | 3.16876 | 0.00% | 0.00% | 0 | 20 |
+-------------------------------------+----------------+---------+--------+------+-----------+-----------+-----------------------+-----------------------+--------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate
315581/s --
Legends:
: dataset=elems10prefix1 ds_tags= p_tags= participant=String::CommonPrefix::common_prefix perl=perl
=for html <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkY...
Benchmark module startup overhead (C<< bencher -m StringFunctions::CommonPrefix --module-startup >>):
#table9#
+----------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
| participant | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest | errors | samples |
+----------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
| String::CommonPrefix | 8.82 | 2.62 | 0.00% | 42.80% | 8.5e-06 | 21 |
| perl -e1 (baseline) | 6.2 | 0 | 42.80% | 0.00% | 1.9e-05 | 20 |
+----------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
Formatted as L<Benchmark.pm|Benchmark> result:
Rate S:C perl -e1 (baseline)
S:C 113.4/s -- -29%
perl -e1 (baseline) 161.3/s 42% --
Legends:
S:C: mod_overhead_time=2.62 participant=String::CommonPrefix
perl -e1 (baseline): mod_overhead_time=0 participant=perl -e1 (baseline)
=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-StringFunctions>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-Bencher-Scenarios-StringFunctions>.
=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) 2022, 2021, 2018 by perlancar <perlancar@cpan.org>.
( run in 0.697 second using v1.01-cache-2.11-cpan-39bf76dae61 )