Bencher-Scenarios-ShellGuess

 view release on metacpan or  search on metacpan

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

 | load Shell::Guess                 |       100 |       9.7 |    0.0452853002877057 |      4.27095376451354 | 3.4e-05 |      20 |
 | perl (baseline)                   |       550 |       1.8 |    4.50965048854215   |      0                | 6.6e-06 |      21 |
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+


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

                                      Rate  load Shell::Guess + running_shell  load Shell::Guess  perl (baseline) 
  load Shell::Guess + running_shell   99/s                                 --                -3%             -82% 
  load Shell::Guess                  100/s                                 3%                 --             -81% 
  perl (baseline)                    550/s                               455%               438%               -- 
 
 Legends:
   load Shell::Guess: participant=load Shell::Guess
   load Shell::Guess + running_shell: participant=load Shell::Guess + running_shell
   perl (baseline): participant=perl (baseline)

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 #3

Benchmark command (under tcsh ('c')):

 % 

Result formatted as table:

 #table3#
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
 | participant                       | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors | samples |
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+
 | load Shell::Guess + running_shell |       100 |      10   |    0                  |      3.66106761739065 | 4.6e-05 |      20 |
 | load Shell::Guess                 |       100 |       9.7 |    0.0311256049185042 |      3.52036841598851 | 4.7e-05 |      20 |
 | perl (baseline)                   |       500 |       2   |    3.66106761739065   |      0                | 4.7e-05 |      20 |
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+---------+---------+


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

                                      Rate  load Shell::Guess + running_shell  load Shell::Guess  perl (baseline) 
  load Shell::Guess + running_shell  100/s                                 --                -3%             -80% 
  load Shell::Guess                  100/s                                 3%                 --             -79% 
  perl (baseline)                    500/s                               400%               384%               -- 
 
 Legends:
   load Shell::Guess: participant=load Shell::Guess
   load Shell::Guess + running_shell: participant=load Shell::Guess + running_shell
   perl (baseline): participant=perl (baseline)

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 #4

Benchmark command (under zsh ('z')):

 % 

Result formatted as table:

 #table4#
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
 | participant                       | rate (/s) | time (ms) | pct_faster_vs_slowest | pct_slower_vs_fastest |  errors   | samples |
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+
 | load Shell::Guess                 |       100 |        10 |    0                  |      4.17013158922127 |   0.00011 |      20 |
 | load Shell::Guess + running_shell |        99 |        10 |    0.0309140475235712 |      4.01509471293053 |   5e-05   |      20 |
 | perl (baseline)                   |       500 |         2 |    4.17013158922127   |      0                | 2.6e-05   |      20 |
 +-----------------------------------+-----------+-----------+-----------------------+-----------------------+-----------+---------+


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

                                      Rate  load Shell::Guess  load Shell::Guess + running_shell  perl (baseline) 
  load Shell::Guess                  100/s                 --                                 0%             -80% 
  load Shell::Guess + running_shell   99/s                 0%                                 --             -80% 
  perl (baseline)                    500/s               400%                               400%               -- 
 
 Legends:
   load Shell::Guess: participant=load Shell::Guess
   load Shell::Guess + running_shell: participant=load Shell::Guess + running_shell
   perl (baseline): participant=perl (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-ShellGuess>.

=head1 SOURCE

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

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

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 SEE ALSO

=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 1.706 second using v1.01-cache-2.11-cpan-39bf76dae61 )