NAME

Bencher::Scenario::DataCleansing::Startup - Benchmark startup of various data cleansing modules

VERSION

This document describes version 0.005 of Bencher::Scenario::DataCleansing::Startup (from Perl distribution Bencher-Scenarios-DataCleansing), released on 2019-09-11.

SYNOPSIS

To run benchmark with default option:

% bencher -m DataCleansing::Startup

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

DESCRIPTION

Packaging a benchmark script as a Bencher scenario makes it convenient to include/exclude/add participants/datasets (either via CLI or Perl code), send the result to a central repository, among others . See Bencher and bencher (CLI) for more details.

BENCHMARKED MODULES

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

Cpanel::JSON::XS 3.0239

Data::Abridge 0.03.01

Data::Clean 0.505

Data::Clean::ForJSON 0.394

Data::Rmap 0.65

Data::Tersify 0.001

Data::Visitor::Callback 0.30

JSON::MaybeXS 1.004

JSON::PP 2.27400_02

JSON::XS 3.04

BENCHMARK PARTICIPANTS

SAMPLE BENCHMARK RESULTS

Run on: perl: v5.26.1, CPU: Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz (2 cores), OS: GNU/Linux LinuxMint version 18.3, OS kernel: Linux version 4.10.0-38-generic.

Benchmark with default options (bencher -m DataCleansing::Startup):

#table1#
+-------------------------+-----------+------------------------+------------+----------+---------+
| participant             | time (ms) | mod_overhead_time (ms) | vs_slowest |  errors  | samples |
+-------------------------+-----------+------------------------+------------+----------+---------+
| Data::Visitor::Callback |     190   |                  181.3 |       1    |   0.0004 |      20 |
| Data::Tersify           |      32   |                   23.3 |       6    | 3.5e-05  |      23 |
| JSON::PP                |      28.8 |                   20.1 |       6.75 | 2.5e-05  |      22 |
| JSON::MaybeXS           |      21   |                   12.3 |       9.28 | 1.7e-05  |      20 |
| Data::Abridge           |      19.1 |                   10.4 |      10.2  | 1.7e-05  |      21 |
| Data::Rmap              |      16   |                    7.3 |      12    | 3.3e-05  |      21 |
| JSON::XS                |      16   |                    7.3 |      12    | 2.7e-05  |      20 |
| Cpanel::JSON::XS        |      15   |                    6.3 |      13    | 1.7e-05  |      20 |
| Data::Clean::ForJSON    |      15   |                    6.3 |      13    | 3.8e-05  |      20 |
| Data::Clean             |      13   |                    4.3 |      15    | 3.4e-05  |      20 |
| perl -e1 (baseline)     |       8.7 |                    0   |      22    |   3e-05  |      20 |
+-------------------------+-----------+------------------------+------------+----------+---------+

To display as an interactive HTML table on a browser, you can add option --format html+datatables.

HOMEPAGE

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

SOURCE

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

BUGS

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

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) 2019, 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.