The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Bencher::Scenario::TimeHiRes::usleep_accuracy - Demonstrate inaccuracy of doing lots of small usleep

VERSION

This document describes version 0.003 of Bencher::Scenario::TimeHiRes::usleep_accuracy (from Perl distribution Bencher-Scenarios-TimeHiRes), released on 2018-12-21.

SYNOPSIS

To run benchmark with default option:

 % bencher -m TimeHiRes::usleep_accuracy

To run module startup overhead benchmark:

 % bencher --module-startup -m TimeHiRes::usleep_accuracy

For more options (dump scenario, list/include/exclude/add participants, list/include/exclude/add datasets, etc), see bencher or run bencher --help.

DESCRIPTION

Basically the same as Bencher::Scenario::TimeHiRes::sleep_accuracy.

BENCHMARKED MODULES

Version numbers shown below are the versions used when running the sample benchmark.

Time::HiRes

BENCHMARK PARTICIPANTS

  • 1e5 x1 (perl_code)

    Function call template:

     Time::HiRes::usleep(1e5)
  • 1e4 x10 (perl_code)

    Function call template:

     Time::HiRes::usleep(1e4) for 1..10
  • 1e3 x100 (perl_code)

    Function call template:

     Time::HiRes::usleep(1e3) for 1..100
  • 1e2 x1000 (perl_code)

    Function call template:

     Time::HiRes::usleep(1e2) for 1..1000
  • 1e1 x10000 (perl_code)

    Function call template:

     Time::HiRes::usleep(1e1) for 1..10000
  • 1e0 x100000 (perl_code)

    Function call template:

     Time::HiRes::usleep(1e0) for 1..100_000

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Bencher-Scenarios-TimeHiRes.

SOURCE

Source repository is at https://github.com/perlancar/perl-Bencher-Scenarios-TimeHiRes.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Bencher-Scenarios-TimeHiRes

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.

SEE ALSO

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018, 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.