NAME

Bencher::Scenario::Perl::5220Perf_length - Benchmark hash lookup

VERSION

This document describes version 0.051 of Bencher::Scenario::Perl::5220Perf_length (from Perl distribution Bencher-Scenarios-Perl), released on 2021-07-03.

SYNOPSIS

To run benchmark with default option:

% bencher -m Perl::5220Perf_length

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

DESCRIPTION

From perl5220delta: There is a performance improvement of up to 20% when length is applied to a non-magical, non-tied string, and either use bytes is in scope or the string doesn't use UTF-8 internally.

BENCHMARK PARTICIPANTS

  • length100 (perl_code)

    Code template:

    use bytes; my $str = <str>; for(1..100) { my $len = length($str) }

BENCHMARK DATASETS

  • str100

HOMEPAGE

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

SOURCE

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

BUGS

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

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

perl5220delta

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

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