Bencher-Scenarios-DataSahResolve

 view release on metacpan or  search on metacpan

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

=item * 5-schemas

=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 (default options):

 % bencher -m DataSahResolve::Overhead

Result formatted as table:

 #table1#
 +------------------+---------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
 | participant      | dataset       | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
 +------------------+---------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
 | gen_validator    | 5-schemas     |        19 |        53 |                 0.00% |               609.35% | 0.00015 |      20 |
 | gen_validator    | perl::modname |        23 |        44 |                20.69% |               487.72% | 0.00014 |      20 |
 | gen_validator    | int           |        24 |        41 |                27.73% |               455.34% | 0.00023 |      20 |
 | resolve_schema   | 5-schemas     |        60 |        17 |               214.27% |               125.71% | 0.00013 |      20 |
 | resolve_schema   | perl::modname |        70 |        20 |               250.89% |               102.16% | 0.00015 |      20 |
 | resolve_schema   | int           |        71 |        14 |               275.44% |                88.94% | 0.00012 |      20 |
 | normalize_schema | int           |       100 |         8 |               559.28% |                 7.59% | 0.00018 |      20 |
 | normalize_schema | 5-schemas     |       100 |         8 |               577.87% |                 4.64% | 0.00011 |      20 |
 | normalize_schema | perl::modname |       100 |         7 |               609.35% |                 0.00% | 0.00016 |      20 |
 +------------------+---------------+-----------+-----------+-----------------------+-----------------------+---------+---------+


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

                      Rate  g_v 5-schemas  g_v perl::modname  g_v int  r_s perl::modname  r_s 5-schemas  r_s int  n_s int  n_s 5-schemas  n_s perl::modname 
  g_v 5-schemas       19/s             --               -16%     -22%               -62%           -67%     -73%     -84%           -84%               -86% 
  g_v perl::modname   23/s            20%                 --      -6%               -54%           -61%     -68%     -81%           -81%               -84% 
  g_v int             24/s            29%                 7%       --               -51%           -58%     -65%     -80%           -80%               -82% 
  r_s perl::modname   70/s           165%               120%     104%                 --           -15%     -30%     -60%           -60%               -65% 
  r_s 5-schemas       60/s           211%               158%     141%                17%             --     -17%     -52%           -52%               -58% 
  r_s int             71/s           278%               214%     192%                42%            21%       --     -42%           -42%               -50% 
  n_s int            100/s           562%               450%     412%               150%           112%      75%       --             0%               -12% 
  n_s 5-schemas      100/s           562%               450%     412%               150%           112%      75%       0%             --               -12% 
  n_s perl::modname  100/s           657%               528%     485%               185%           142%     100%      14%            14%                 -- 
 
 Legends:
   g_v 5-schemas: dataset=5-schemas participant=gen_validator
   g_v int: dataset=int participant=gen_validator
   g_v perl::modname: dataset=perl::modname participant=gen_validator
   n_s 5-schemas: dataset=5-schemas participant=normalize_schema
   n_s int: dataset=int participant=normalize_schema
   n_s perl::modname: dataset=perl::modname participant=normalize_schema
   r_s 5-schemas: dataset=5-schemas participant=resolve_schema
   r_s int: dataset=int participant=resolve_schema
   r_s perl::modname: dataset=perl::modname participant=resolve_schema

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.892 second using v1.01-cache-2.11-cpan-788537b7465 )