Bencher-Scenarios-DataSahResolve

 view release on metacpan or  search on metacpan

lib/Bencher/Scenario/DataSahResolve/Resolve.pm  view on Meta::CPAN



=back

=head1 BENCHMARK DATASETS

=over

=item * int

=item * posint

=item * poseven

=back

=head1 BENCHMARK SAMPLE RESULTS

=head2 Sample benchmark #1

Run on: perl: I<< v5.34.0 >>, CPU: I<< Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (4 cores) >>, OS: I<< GNU/Linux LinuxMint version 19 >>, OS kernel: I<< Linux version 5.3.0-68-generic >>.

Benchmark command:

 % bencher -m DataSahResolve::Resolve --include-path archive/Data-Sah-Resolve-0.008/lib --include-path archive/Data-Sah-Resolve-0.011/lib --multimodver Data::Sah::Resolve

Result formatted as table:

 #table1#
 +---------+--------+-----------+-----------+-----------------------+-----------------------+---------+---------+
 | dataset | modver | rate (/s) | time (μs) | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
 +---------+--------+-----------+-----------+-----------------------+-----------------------+---------+---------+
 | poseven | 0.011  |     20000 |      49   |                 0.00% |              1869.65% | 1.1e-07 |      20 |
 | poseven | 0.008  |     22000 |      44   |                10.77% |              1678.22% | 5.1e-08 |      22 |
 | posint  | 0.011  |     35000 |      28   |                73.03% |              1038.29% | 5.3e-08 |      20 |
 | posint  | 0.008  |     43000 |      23.3 |               111.78% |               830.03% | 6.7e-09 |      20 |
 | int     | 0.011  |    210000 |       4.9 |               915.20% |                94.02% | 4.9e-09 |      21 |
 | int     | 0.008  |    400000 |       2.5 |              1869.65% |                 0.00% | 4.2e-09 |      20 |
 +---------+--------+-----------+-----------+-----------------------+-----------------------+---------+---------+


The above result formatted in L<Benchmark.pm|Benchmark> style:

               Rate  poseven  poseven  posint  posint   int   int 
  poseven   20000/s       --     -10%    -42%    -52%  -90%  -94% 
  poseven   22000/s      11%       --    -36%    -47%  -88%  -94% 
  posint    35000/s      75%      57%      --    -16%  -82%  -91% 
  posint    43000/s     110%      88%     20%      --  -78%  -89% 
  int      210000/s     900%     797%    471%    375%    --  -48% 
  int      400000/s    1860%    1660%   1019%    832%   96%    -- 
 
 Legends:
   int: dataset=int modver=0.008
   poseven: dataset=poseven modver=0.008
   posint: dataset=posint modver=0.008

The above result presented as chart:

=begin html

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkYFMwE3yiMn5...

=end html


=head2 Sample benchmark #2

Benchmark command (benchmarking module startup overhead):

 % bencher -m DataSahResolve::Resolve --module-startup

Result formatted as table:

 #table2#
 +---------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
 | participant         | time (ms) | mod_overhead_time | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
 +---------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+
 | Data::Sah::Resolve  |         8 |                 4 |                 0.00% |                73.07% | 0.00027 |      21 |
 | perl -e1 (baseline) |         4 |                 0 |                73.07% |                 0.00% | 0.00014 |      20 |
 +---------------------+-----------+-------------------+-----------------------+-----------------------+---------+---------+


The above result formatted in L<Benchmark.pm|Benchmark> style:

                          Rate  DS:R  perl -e1 (baseline) 
  DS:R                 125.0/s    --                 -50% 
  perl -e1 (baseline)  250.0/s  100%                   -- 
 
 Legends:
   DS:R: mod_overhead_time=4 participant=Data::Sah::Resolve
   perl -e1 (baseline): mod_overhead_time=0 participant=perl -e1 (baseline)

The above result presented as chart:

=begin html

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtAAAAH4CAMAAABUnipoAAAJJmlDQ1BpY2MAAEiJlZVnUJNZF8fv8zzphUASQodQQ5EqJYCUEFoo0quoQOidUEVsiLgCK4qINEWQRQEXXJUia0UUC4uCAhZ0gywCyrpxFVFBWXDfGZ33HT+8/5l7z2/+c+bec8/5cAEgiINlwct7YlK6wNvJjhkYFMwE3yiMn5...

=end html


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-DataSahResolve>.

=head1 SOURCE

Source repository is at L<https://github.com/perlancar/perl-Bencher-Scenarios-DataSahResolve>.

=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-DataSahResolve>

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.

=head1 AUTHOR

perlancar <perlancar@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2021, 2017, 2016 by 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.

=cut



( run in 0.530 second using v1.01-cache-2.11-cpan-788537b7465 )